diff options
author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-11-14 19:19:04 +0100 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | fd427a51bc2bd97656767acc7f6b48160f8e60c4 (patch) | |
tree | e3c9426bb51362d5df30d1f150c7ac72735cf9a1 /lib/puppet | |
parent | 75c32f910ea124a938a7035b3352c11a11b57d0c (diff) | |
download | puppet-fd427a51bc2bd97656767acc7f6b48160f8e60c4.tar.gz puppet-fd427a51bc2bd97656767acc7f6b48160f8e60c4.tar.xz puppet-fd427a51bc2bd97656767acc7f6b48160f8e60c4.zip |
Raise an error when appending not a hash to a hash
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/parser/scope.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb index 12c645a90..c32db357f 100644 --- a/lib/puppet/parser/scope.rb +++ b/lib/puppet/parser/scope.rb @@ -340,6 +340,7 @@ class Puppet::Parser::Scope when Array table[name] += value when Hash + raise ArgumentError, "Trying to append to a hash with something which is not a hash is unsupported" unless value.is_a?(Hash) table[name].merge!(value) else table[name] << value |