diff options
| author | James Turnbull <james@lovedthanlost.net> | 2008-03-03 11:59:14 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-03-03 11:59:14 +1100 |
| commit | 281448fb47a7c88bf8d1c3222d03264ecfaeb183 (patch) | |
| tree | 1e8bb91ed20fd1385c63cff8d5aa77db7eb1f68d /lib/puppet/network | |
| parent | f1d75c8bc2604ea396c6d88ba7eef866f48f6046 (diff) | |
| parent | ba803a1fb8190997f277b83d50c531b446b2a67f (diff) | |
Merge branch '0.24.x' of git://reductivelabs.com/puppet into 0.24.x
Diffstat (limited to 'lib/puppet/network')
| -rw-r--r-- | lib/puppet/network/client/master.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb index 390f3d4e2..913c51b3d 100644 --- a/lib/puppet/network/client/master.rb +++ b/lib/puppet/network/client/master.rb @@ -26,14 +26,15 @@ class Puppet::Network::Client::Master < Puppet::Network::Client down = Puppet[:downcasefacts] - facts = {} - Facter.each { |name,fact| + facts = Facter.to_hash.inject({}) do |newhash, array| + name, fact = array if down - facts[name] = fact.to_s.downcase + newhash[name] = fact.to_s.downcase else - facts[name] = fact.to_s + newhash[name] = fact.to_s end - } + newhash + end # Add our client version to the list of facts, so people can use it # in their manifests |
