If a Stack object has been removed from the database, we should reset its
ID to None so that if the object is used further, it will not be assumed
that it is represented in the database.
Change-Id: Iaa7e9327324f101487847362973bd7f8386ce44b
elif action == self.ROLLBACK:
self.state_set(self.ROLLBACK_COMPLETE, 'Rollback completed')
db_api.stack_delete(self.context, self.id)
+ self.id = None
def output(self, key):
'''
test_fn(test_cls)
finally:
try:
- test_cls.stack.delete()
+ if test_cls.stack.id is not None:
+ test_cls.stack.delete()
except AttributeError:
pass
return wrapped_test