lib/aws/cfn/compiler.rb in aws-cfn-compiler-0.0.5 vs lib/aws/cfn/compiler.rb in aws-cfn-compiler-0.0.6
- old
+ new
@@ -38,10 +38,10 @@
if @spec and @spec['description']
desc = @spec['description']
end
compiled = {
AWSTemplateFormatVersion: (@opts[:formatversion].nil? ? '2010-09-09' : @opts[:formatversion]),
- Description: (@opts[:description].nil? rescue desc ),
+ Description: (@opts[:description].nil? ? desc : @opts[:description]),
Parameters: @items['params'],
Mappings: @items['mappings'],
Resources: @items['resources'],
Outputs: @items['outputs'],
}