Fix todo that is not needed anymore stestr conf

Stestr conf was using the wrong module name so tox would not work (I
have no idea how that passes tempest gates) So fixing that so tox works
(on an env that has tempest setup) and removed todos that the force
deletion has been merged

Change-Id: Ib47148c5e28acaae7cd5872a1af3e7d044336ea1
This commit is contained in:
Adriano Petrich 2018-04-30 09:02:44 +01:00
parent 3a1b40ff15
commit 35d94fd609
2 changed files with 6 additions and 11 deletions

View File

@ -1,3 +1,3 @@
[DEFAULT] [DEFAULT]
test_path=./mistral-tempest-plugin/tests test_path=mistral_tempest_tests
top_dir=./ top_dir=./

View File

@ -81,16 +81,11 @@ class MistralClientBase(rest_client.RestClient):
def delete_obj(self, obj, name, force=None): def delete_obj(self, obj, name, force=None):
if force: if force:
# TODO(apetrich) This try except is a partial implementation return self.delete('{obj}/{name}?force={force}'.format(
# to be removed once force deletion lands in mistral obj=obj,
try: name=name,
return self.delete('{obj}/{name}?force={force}'.format( force=bool(force))
obj=obj, )
name=name,
force=bool(force))
)
except Exception:
pass
return self.delete('{obj}/{name}'.format(obj=obj, name=name)) return self.delete('{obj}/{name}'.format(obj=obj, name=name))