1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2025-09-07 13:59:28 +00:00

add custom function to allow for empty hashes in params (specify hostname only to pickup defaults)

This commit is contained in:
Norbert Varzariu
2015-12-19 21:13:55 +01:00
parent f7922a2e4a
commit fa88ccb1cb
2 changed files with 16 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
module Puppet::Parser::Functions
newfunction(:pick_undef, :type => :rvalue, :doc => <<-EOS
This function is similar to pick_default, but will return or undefined values.
newfunction(:pick_undef, :type => :rvalue, :doc => <<-EOS
This function is similar to pick_default, but will return or undefined values.
EOS
) do |args|
fail "Must receive at least one argument." if args.empty?