diff options
author | Luke Kanies <luke@madstop.com> | 2008-06-15 14:39:45 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-06-15 14:39:45 -0500 |
commit | ac7f59618a80b6a4aac777f6184e7fa6a0614079 (patch) | |
tree | 30e72d4719a63899007a9ceca32994d3d53c053a /lib/puppet | |
parent | 575f37a0656f5a1f94fe6fb1b189d1701a98cadc (diff) | |
download | puppet-ac7f59618a80b6a4aac777f6184e7fa6a0614079.tar.gz puppet-ac7f59618a80b6a4aac777f6184e7fa6a0614079.tar.xz puppet-ac7f59618a80b6a4aac777f6184e7fa6a0614079.zip |
Fixed #1201 - all external node attributes are converted to strings.
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/indirector/node/exec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/indirector/node/exec.rb b/lib/puppet/indirector/node/exec.rb index 52cbc370c..029a35c4f 100644 --- a/lib/puppet/indirector/node/exec.rb +++ b/lib/puppet/indirector/node/exec.rb @@ -30,6 +30,13 @@ class Puppet::Node::Exec < Puppet::Indirector::Exec def create_node(name, result) node = Puppet::Node.new(name) set = false + if current = result[:parameters] + result[:parameters] = current.inject({}) do |strings, ary| + param, value = ary + strings[param] = value.to_s + strings + end + end [:parameters, :classes, :environment].each do |param| if value = result[param] node.send(param.to_s + "=", value) |