]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(PUP-638) Add a pick_default() function that always returns a value.
authorDavid Schmitt <david@dasz.at>
Thu, 23 Jan 2014 14:22:27 +0000 (15:22 +0100)
committerAndrew Parker <andy@puppetlabs.com>
Wed, 29 Jan 2014 17:26:35 +0000 (09:26 -0800)
commit52fcef573f206630df007caf2979fb4c404e3dbc
treecef53352a95e19bffcc5cc57e81214b17b961819
parent9346b108ce7996bcb363a94d84d087984d74bc86
(PUP-638) Add a pick_default() function that always returns a value.

This version of pick() does not error out, instead always returning at least
the last argument, even if that too has no "real" value.
lib/puppet/parser/functions/pick_default.rb [new file with mode: 0644]
spec/unit/puppet/parser/functions/pick_default_spec.rb [new file with mode: 0644]