]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat engine : format stack outputs for updated stacks
authorSteven Hardy <shardy@redhat.com>
Wed, 26 Sep 2012 15:21:33 +0000 (16:21 +0100)
committerSteven Hardy <shardy@redhat.com>
Wed, 26 Sep 2012 15:27:30 +0000 (16:27 +0100)
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 <shardy@redhat.com>
heat/engine/api.py

index ca9c9a2c824538122a6dacd4af3c3d85a9b17aa5..a794f4d41dd53f4ba04e9b78e6245599e37630ee 100644 (file)
@@ -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