Merge "Return stack.outputs when stack in DELETE_FAILED"

This commit is contained in:
Zuul 2018-02-01 06:38:08 +00:00 committed by Gerrit Code Review
commit e15538c198
1 changed files with 2 additions and 1 deletions

View File

@ -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)