summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Barczyński <romke@estrefa.pl>2011-03-04 14:04:56 +0100
committerRoman Barczyński <romke@estrefa.pl>2011-03-04 14:04:56 +0100
commit3a4b4559fe45b8d6df419301c9464c968068d39f (patch)
tree3cdfe9d94631921af4ecdfe3ac7023e96e5a133e
parentab749e74149ee82cb903ed82dc8396657d1d5b83 (diff)
parent19fd344a0fdb22ef6b3c6e80bc8fd4983e56d7cb (diff)
downloadpuppet-stdlib-3a4b4559fe45b8d6df419301c9464c968068d39f.tar.gz
puppet-stdlib-3a4b4559fe45b8d6df419301c9464c968068d39f.tar.bz2
Merge branch 'master' of git://github.com/kwilczynski/puppet-functions into kwilczynski-master
-rw-r--r--load_vars.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/load_vars.rb b/load_vars.rb
index 07ee745..cc2495b 100644
--- a/load_vars.rb
+++ b/load_vars.rb
@@ -57,7 +57,7 @@ module Puppet::Parser::Functions
raise(Puppet::ParseError,
"Data in the file `%s' is not a hash" % file) unless data.is_a?(Hash)
- data = ((data[key].is_a?(Hash)) ? data[key] : {}) if key
+ data = ((data[key] and data[key].is_a?(Hash)) ? data[key] : {}) if key
end
data.each { |param, value| setvar(param, strinterp(value)) }