From: Peter Palfrader Date: Tue, 26 May 2009 18:42:35 +0000 (+0200) Subject: Maybe this fixes stuff X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=c714298e1ffbf67e70c9207f72058e64217fc006;p=mirror%2Fdsa-puppet.git Maybe this fixes stuff --- diff --git a/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb b/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb index 94e806c89..7a875ea38 100644 --- a/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb +++ b/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb @@ -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)