lib/aws/cfn/compiler/base.rb in aws-cfn-compiler-0.9.16 vs lib/aws/cfn/compiler/base.rb in aws-cfn-compiler-0.9.17
- old
+ new
@@ -19,9 +19,12 @@
@items = {}
@dynamic_items = {}
end
def dynamic_item(section,resource,hash)
+ unless @dynamic_items.has_key?(section)
+ @dynamic_items[section] ||= {}
+ end
@dynamic_items[section][resource] = hash
end
def validate(compiled)
abort! 'No Resources!?' unless compiled['Resources']