From: Steven Hardy Date: Wed, 26 Sep 2012 15:21:33 +0000 (+0100) Subject: heat engine : format stack outputs for updated stacks X-Git-Tag: 2014.1~1352 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ff10a55f16f4579ad3ec9e600b8448606242fd50;p=openstack-build%2Fheat-build.git heat engine : format stack outputs for updated stacks Fix bug where stack outputs are not formatted when stacks are in UPDATE_COMPLETE state Fixes #250 Change-Id: I8936c8e62b8c9b1f28f09eb5b8c50eb79cb76eb2 Signed-off-by: Steven Hardy --- diff --git a/heat/engine/api.py b/heat/engine/api.py index ca9c9a2c..a794f4d4 100644 --- a/heat/engine/api.py +++ b/heat/engine/api.py @@ -103,8 +103,8 @@ def format_stack(stack): STACK_TIMEOUT: stack.timeout_mins, } - # only show the outputs on a completely created stack - if stack.state == stack.CREATE_COMPLETE: + # only show the outputs on a completely created or updated stack + if stack.state in (stack.CREATE_COMPLETE, stack.UPDATE_COMPLETE): info[STACK_OUTPUTS] = format_stack_outputs(stack, stack.outputs) return info