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:
@@ -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?
|
||||
|
Reference in New Issue
Block a user