Closed florianfa closed 1 year ago
I was experimenting with puppet and discovered that hiera_hash("key", undef) doesn't actually return undef from 3.7 onwards (I haven't checked without the future parser.) Using 3.6.2 will work.
Here is the module I wrote to test: class broken () { $broken = hiera_hash("broken::stuff", undef) if $broken { notify { "puppet version ${::puppetversion} is broken": } } else { notify { "puppet version ${::puppetversion} works OK": } } }
Hi, based on a discussion in https://groups.io/g/voxpupuli/message/449 we decided to archive this repository. I'm going to close all issues and PRs. If you're interested in maintaining the module, please respond to our mailinglist.
Hello erwbgy,
If I use the future parser I will get an error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, create_resources(): second argument must be a hash at /etc/puppet/environments/development/modules/system/manifests/yumrepos.pp:16:7 on node Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run
My Env: Puppet Master: 3.7.1 Puppet Agent: 3.7.1
Thank you.
Regards, Florian