puppet-system icon indicating copy to clipboard operation
puppet-system copied to clipboard

Puppet agent returns an error if puppet future parser is enabled

Open florianfa opened this issue 11 years ago • 1 comments

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

florianfa avatar Oct 10 '14 11:10 florianfa

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": } } }

RichardN avatar Feb 11 '15 09:02 RichardN

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.

bastelfreak avatar Jun 09 '23 13:06 bastelfreak