diff options
author | Markus Roberts <Markus@reality.com> | 2009-09-15 16:02:45 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-09-16 11:47:15 +1000 |
commit | fd2a1904f61c8dc1d47445833a91e365bd8ab708 (patch) | |
tree | 540c0c0671f2eef35f5cc8e5d43bde12220cdcca /lib/puppet/resource.rb | |
parent | 577a45b45711942f71c31ff2db0c7fbcd82e1b1d (diff) | |
download | puppet-fd2a1904f61c8dc1d47445833a91e365bd8ab708.tar.gz puppet-fd2a1904f61c8dc1d47445833a91e365bd8ab708.tar.xz puppet-fd2a1904f61c8dc1d47445833a91e365bd8ab708.zip |
Fix for #2621 (JSON serialization of exec)
Removed the array wrapping of values for JSON serialization, and
the associated test.
Signed-off-by: Markus Roberts <Markus@reality.com>
Diffstat (limited to 'lib/puppet/resource.rb')
-rw-r--r-- | lib/puppet/resource.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/puppet/resource.rb b/lib/puppet/resource.rb index 134076580..3e27e0e00 100644 --- a/lib/puppet/resource.rb +++ b/lib/puppet/resource.rb @@ -55,7 +55,6 @@ class Puppet::Resource # Don't duplicate the title as the namevar next hash if param == namevar and value == title - value = [value] unless value.is_a?(Array) hash[param] = value hash end |