Maybe this fixes stuff
authorPeter Palfrader <peter@palfrader.org>
Tue, 26 May 2009 18:42:35 +0000 (20:42 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 26 May 2009 18:42:35 +0000 (20:42 +0200)
files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb

index 94e806c..7a875ea 100644 (file)
@@ -35,7 +35,7 @@ module Puppet::Parser::Functions
     results['reservedaddrs']  = '0.0.0.0/8 : 127.0.0.0/8 : 10.0.0.0/8 : 169.254.0.0/16 : 172.16.0.0/12 : 192.0.0.0/17 : 192.168.0.0/16 : 224.0.0.0/4 : 240.0.0.0/5 : 248.0.0.0/5'
 
     if yaml['host_settings'].kind_of?(Hash)
-      yaml['host_settings'].each_key do |property, values|
+      yaml['host_settings'].each_pair do |property, values|
         if values.kind_of?(Hash)
           results[property] = values[host] if values.has_key?(host)
         elsif values.kind_of?(Array)