From 235112febe5e4d413ff8ca62ce22e9444974c1e5 Mon Sep 17 00:00:00 2001 From: Chris Alfonso Date: Thu, 3 May 2012 09:10:13 -0400 Subject: [PATCH] Only showing the Outputs when the status of a stack is CREATE_COMPLETE This fixes issues #96 --- heat/engine/manager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.45.2