Merge "Don't use two different names for the same flag"
This commit is contained in:
commit
7fa14d071b
@ -54,7 +54,6 @@ class StackResource(resource.Resource):
|
||||
|
||||
def __init__(self, name, json_snippet, stack):
|
||||
super(StackResource, self).__init__(name, json_snippet, stack)
|
||||
self.nested_abandon_in_progress = False
|
||||
self._nested = None
|
||||
self.resource_info = None
|
||||
|
||||
@ -456,7 +455,7 @@ class StackResource(resource.Resource):
|
||||
stack_identity = dict(stack.identifier())
|
||||
|
||||
try:
|
||||
if self.nested_abandon_in_progress:
|
||||
if self.abandon_in_progress:
|
||||
self.rpc_client().abandon_stack(self.context, stack_identity)
|
||||
else:
|
||||
self.rpc_client().delete_stack(self.context, stack_identity)
|
||||
@ -513,7 +512,7 @@ class StackResource(resource.Resource):
|
||||
return self._check_status_complete(self.CHECK)
|
||||
|
||||
def prepare_abandon(self):
|
||||
self.nested_abandon_in_progress = True
|
||||
self.abandon_in_progress = True
|
||||
nested_stack = self.nested()
|
||||
if nested_stack:
|
||||
return self.nested().prepare_abandon()
|
||||
|
Loading…
Reference in New Issue
Block a user