Return stack.outputs when stack in DELETE_FAILED
Users can not view outputs of stacks in DELETE_FAILED. But it's useful for magnum to get cluster info from stack.outputs and for users to debug failed stacks. Change-Id: Ib3927c61660b1b2162d5b34809b48401062a6f02 Close-Bug: #1712274
This commit is contained in:
parent
c423e5d202
commit
a410b072aa
|
@ -233,7 +233,8 @@ def format_stack(stack, preview=False, resolve_outputs=True):
|
|||
info.update(update_info)
|
||||
|
||||
# allow users to view the outputs of stacks
|
||||
if stack.action != stack.DELETE and resolve_outputs:
|
||||
if (not (stack.action == stack.DELETE and stack.status == stack.COMPLETE)
|
||||
and resolve_outputs):
|
||||
info[rpc_api.STACK_OUTPUTS] = format_stack_outputs(stack.outputs,
|
||||
resolve_value=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue