lib/aws/cfn/compiler/base.rb in aws-cfn-compiler-0.8.9 vs lib/aws/cfn/compiler/base.rb in aws-cfn-compiler-0.8.10
- old
+ new
@@ -53,15 +53,16 @@
end
@logger.info ' References validated'
end
def save_template(output_file,compiled)
+ filn = output_file
file = output_file
file = File.expand_path(output_file) if @config[:expandedpaths]
if File.exists?(file)
file = File.realpath(file)
end
- logStep "Writing compiled file to #{file}..."
+ logStep "Writing compiled file to #{filn}..."
begin
hash = {}
compiled.each do |item,value|
unless value.nil?
if (not value.is_a?(Hash)) or (value.count > 0)