Closed jfroche closed 8 years ago
Would it be possible to implement the pick_default. Shouldn't be really different than the pick(). Just avoid to throw an exception
pick_default :: [PValue] -> InterpreterMonad PValue pick_default (a:as) | a `elem` [PUndef, PString "", PString "undef"] = pick as | otherwise = return a
original code: https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/pick_default.rb
Works for me. Thank you !
Would it be possible to implement the pick_default. Shouldn't be really different than the pick(). Just avoid to throw an exception
original code: https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/pick_default.rb