projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Puppet not always reloading its functions is really really annoying
[mirror/dsa-puppet.git]
/
modules
/
puppetmaster
/
lib
/
puppet
/
parser
/
functions
/
getfromhash.rb
diff --git
a/modules/puppetmaster/lib/puppet/parser/functions/getfromhash.rb
b/modules/puppetmaster/lib/puppet/parser/functions/getfromhash.rb
index
6e50ba1
..
69fdeb5
100644
(file)
--- a/
modules/puppetmaster/lib/puppet/parser/functions/getfromhash.rb
+++ b/
modules/puppetmaster/lib/puppet/parser/functions/getfromhash.rb
@@
-7,7
+7,7
@@
module Puppet::Parser::Functions
# allows getting of hash[key] or even hash[key1][key2] etc.
keys.each do |key|
raise Puppet::ParseError, "argument[#{keys_done.join('][')}] is not a hash." unless x.kind_of?(Hash)
- unless
h
.has_key?(key)
+ unless
x
.has_key?(key)
x = false
break
end