From: Chris Alfonso Date: Thu, 3 May 2012 13:10:13 +0000 (-0400) Subject: Only showing the Outputs when the status of a stack is CREATE_COMPLETE X-Git-Tag: 2014.1~1888 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=235112febe5e4d413ff8ca62ce22e9444974c1e5;p=openstack-build%2Fheat-build.git Only showing the Outputs when the status of a stack is CREATE_COMPLETE This fixes issues #96 --- diff --git a/heat/engine/manager.py b/heat/engine/manager.py index 2bd4f95c..ad9eee3e 100644 --- a/heat/engine/manager.py +++ b/heat/engine/manager.py @@ -89,13 +89,17 @@ class EngineManager(manager.Manager): mem['creation_at'] = str(s.created_at) mem['updated_at'] = str(s.updated_at) mem['NotificationARNs'] = 'TODO' - mem['Outputs'] = ps.get_outputs() mem['Parameters'] = ps.t['Parameters'] mem['StackStatusReason'] = 'TODO' mem['TimeoutInMinutes'] = 'TODO' mem['TemplateDescription'] = ps.t.get('Description', 'No description') mem['StackStatus'] = ps.t.get('stack_status', 'unknown') + + # only show the outputs on a completely created stack + if ps.t['stack_status'] == ps.CREATE_COMPLETE: + mem['Outputs'] = ps.get_outputs() + res['stacks'].append(mem) return res