lib/puppet/resource_api/glue.rb in puppet-resource_api-0.3.0 vs lib/puppet/resource_api/glue.rb in puppet-resource_api-0.9.0

- old
+ new

@@ -39,10 +39,10 @@ # puts "not pruning #{args.inspect}" if args.length > 0 self end def to_manifest - (["#{@typename} { #{values[:name].inspect}: "] + values.keys.reject { |k| k == :name }.map { |k| " #{k} => #{values[k].inspect}," } + ['}']).join("\n") + (["#{@typename} { #{values[:name].inspect}: "] + values.keys.reject { |k| k == :name }.map { |k| " #{k} => #{Puppet::Parameter.format_value_for_display(values[k])}," } + ['}']).join("\n") end # Convert our resource to yaml for Hiera purposes. def to_hierayaml ([" #{values[:name]}: "] + values.keys.reject { |k| k == :name }.map { |k| " #{k}: #{Puppet::Parameter.format_value_for_display(values[k])}" }).join("\n") + "\n"