Return stack outputs when in progress

Don't filter out stack outputs when stack status is in progress,
returning it all the time instead.

Change-Id: Ife8f1eafe85e9ff4ce5f0a4692c64343c1c2d0b4
Closes-Bug: #1537693
This commit is contained in:
Thomas Herve 2016-01-26 09:17:30 +01:00
parent 8d611985bd
commit 76663a26d9
2 changed files with 2 additions and 2 deletions

View File

@ -239,8 +239,7 @@ 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 stack.status != stack.IN_PROGRESS
and resolve_outputs):
if stack.action != stack.DELETE and resolve_outputs:
info[rpc_api.STACK_OUTPUTS] = format_stack_outputs(stack,
stack.outputs,
resolve_value=True)

View File

@ -358,6 +358,7 @@ class FormatTest(common.HeatTestCase):
'stack_status': 'IN_PROGRESS',
'stack_status_reason': '',
'stack_user_project_id': None,
'outputs': [],
'template_description': 'No description',
'timeout_mins': None,
'tags': None,