About | FAQ | Help
Ask Your Question
0

inifile 2.1.1 throws error while 2.1.0 does not

asked 2018-01-29 10:21:49 -0500

BruceHowells gravatar image

I get the following error on my puppet agent (3.8.6, Red Hat Satellite 6.2, RHEL 6.8) with inifile 2.1.1. With 2.1.0, the module runs fine. Interestingly, my RHEL 7 guests run fine with 2.1.1... It was rather a confusing morning figuring out why all my 6.8 guests suddenly started erroring out.

For now, I've reverted back to 2.1.0, but I'd prefer to not have to play version roulette.

Any insights?

 Error: Could not autoload puppet/type/ini_setting: /var/lib/puppet/lib/puppet/type/ini_setting.rb:22: syntax error, unexpected ':', expecting ')'
  newparam(:name, namevar: true) do
                          ^
/var/lib/puppet/lib/puppet/type/ini_setting.rb:134: syntax error, unexpected kEND, expecting $end
Error: Could not retrieve catalog from remote server: Could not intern from text/pson: Could not autoload puppet/type/ini_setting: /var/lib/puppet/lib/puppet/type/ini_setting.rb:22: syntax error, unexpected ':', expecting ')'
  newparam(:name, namevar: true) do
                          ^
/var/lib/puppet/lib/puppet/type/ini_setting.rb:134: syntax error, unexpected kEND, expecting $end
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
edit retag flag offensive close merge delete

Comments

This looks like a change from the `=>` style 'hash rocket' syntax to the newer style, which is not compatible with ruby 1.8.7.

DarylW gravatar imageDarylW ( 2018-01-29 16:07:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-29 16:14:50 -0500

DarylW gravatar image

According to the 2.1.1 changelogs at https://github.com/puppetlabs/puppetl...

Supported Release 2.1.1

Summary This release is in order to implement Rubocop within the module

and includes a wide array of formatting changes throughout the code and the enabling of rubocop checks to be run against all pull requests against the module.

Changed Rubocop checks will now be run against any PRs made towards

the module. The module has undergone a substantial reformatting in order to comply with the designated standards.

One of the changes due to the rubocop formatting was the shift from the old style 'hash rocket' syntax ( :key => 'value' ) to the newer style ( key: 'value').

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-01-29 10:21:49 -0500

Seen: 61 times

Last updated: Jan 29