Account for missing Properties

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
Angus Salkeld 2012-03-28 11:45:53 +11:00
parent d35f4ac648
commit b7377176be
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ class Resource(object):
self.stack = stack
self.name = name
self.instance_id = None
if not self.t.has_key('Properties'):
# make a dummy entry to prevent having to check all over the
# place for it.
self.t['Properties'] = {}
stack.resolve_static_refs(self.t)
stack.resolve_find_in_map(self.t)