]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(#8708) Add has_key function
authorDan Bode <dan@puppetlabs.com>
Fri, 29 Jul 2011 22:10:13 +0000 (15:10 -0700)
committerDan Bode <dan@puppetlabs.com>
Fri, 29 Jul 2011 22:11:10 +0000 (15:11 -0700)
commitb1beaec2da36aa2312f959b1521137f5df96608f
treecc4301ed7c790dca7e94393f83304647386b723a
parent9560b6336cc983b65aaff909f4fb2e983dfd7012
(#8708) Add has_key function

It is difficult to use existance of keys in a hash
as a boolean condition in Puppet (see #8705)

This function provides a working solution until
the underlying issue in Puppet can be resolved.

Reviewed-by: Jeff McCune
lib/puppet/parser/functions/has_key.rb [new file with mode: 0644]
spec/unit/puppet/parser/functions/has_key_spec.rb [new file with mode: 0644]