From c714298e1ffbf67e70c9207f72058e64217fc006 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 26 May 2009 20:42:35 +0200 Subject: [PATCH] Maybe this fixes stuff --- files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1