diff options
| author | Luke Kanies <luke@madstop.com> | 2008-02-29 11:50:17 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-02-29 11:50:17 -0600 |
| commit | 7ca0ad64f486c5dc50513e6d06c8e0725ce4f7f8 (patch) | |
| tree | 4e74fcdc936b363d4bc2b001fb034242164d983f /lib/puppet/network/client | |
| parent | 43aea83eb1ac388566246e5418394e31a4cad697 (diff) | |
| download | puppet-7ca0ad64f486c5dc50513e6d06c8e0725ce4f7f8.tar.gz puppet-7ca0ad64f486c5dc50513e6d06c8e0725ce4f7f8.tar.xz puppet-7ca0ad64f486c5dc50513e6d06c8e0725ce4f7f8.zip | |
Fixing a test that changed the environment for all later tests,
thus breaking some of them.
Diffstat (limited to 'lib/puppet/network/client')
| -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 |
