Add possibilty to delete environment with incorrect .destroy method
In this patch we introduce a possibility to delete an environment which contains a package with incorrect .destroy method. Previously such kind of environment was stucked in 'Deletion failure' status and we can't do anything with that, now murano environment and heat stack will be deleted completely. partial-bug: 1456724 Change-Id: I90dfa4e6e30c325a17e746c36a4e467189834294
This commit is contained in:
parent
1e62fafe82
commit
3864669dcb
@ -101,6 +101,7 @@ class MuranoDslExecutor(object):
|
||||
method, this, context, params)
|
||||
|
||||
def _invoke_method_implementation(self, method, this, context, params):
|
||||
result = None
|
||||
body = method.body
|
||||
if not body:
|
||||
return None
|
||||
@ -153,7 +154,8 @@ class MuranoDslExecutor(object):
|
||||
LOG.debug(
|
||||
"{0}: End execution: {1} with exception {2}".format(
|
||||
thread_marker, method_info, e))
|
||||
raise
|
||||
if method._name != 'destroy':
|
||||
raise
|
||||
else:
|
||||
LOG.debug(
|
||||
"{0}: End execution: {1}".format(thread_marker, method_info))
|
||||
|
Loading…
x
Reference in New Issue
Block a user