Fix Stack initialisation

self.parms must be set before calling self.resolve_static_data()

Change-Id: Ic3864c56575d759f4f398eb55f90e12c2afdd5f6
Signed-off-by: Zane Bitter <zbitter@redhat.com>
changes/14/214/1
Zane Bitter 10 years ago
parent 89dca2fd6a
commit acf8334a1f
  1. 3
      heat/engine/parser.py

@ -41,7 +41,6 @@ class Stack(object):
self.context = context
self.t = template
self.maps = self.t.get('Mappings', {})
self.outputs = self.resolve_static_data(self.t.get('Outputs', {}))
self.res = {}
self.doc = None
self.name = stack_name
@ -70,6 +69,8 @@ class Stack(object):
if parms is not None:
self.parms.update(parms)
self.outputs = self.resolve_static_data(self.t.get('Outputs', {}))
self.resources = dict((name,
Resource(name, data, self))
for (name, data) in self.t['Resources'].items())

Loading…
Cancel
Save