From: Steven Dake Date: Tue, 17 Apr 2012 16:06:16 +0000 (-0700) Subject: Initialize sec to None to avoid exception in security group X-Git-Tag: 2014.1~1974 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=bf68a800e59ee3dc37ea2509048b8ddb6f3af4de;p=openstack-build%2Fheat-build.git Initialize sec to None to avoid exception in security group When an existing security group is not found in nova, heat will trigger an exception and the stack won't be created. Signed-off-by: Steven Dake --- diff --git a/heat/engine/resources.py b/heat/engine/resources.py index 2b1475b8..42a521a1 100644 --- a/heat/engine/resources.py +++ b/heat/engine/resources.py @@ -211,6 +211,7 @@ class SecurityGroup(Resource): return self.state_set(self.CREATE_IN_PROGRESS) Resource.create(self) + sec = None groups = self.nova().security_groups.list() for group in groups: