-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure versioncmp 'a' parameter is a string #70
Conversation
Fixes: > Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'a' expects a String value, got Undef (file: /etc/puppetlabs/code/environments/production/modules/augeas/manifests/lens.pp, line: 61, column: 24) (file: /etc/puppetlabs/code/environments/production/modules/postfix/manifests/augeas.pp, line: 7) on node [...]
Well that might fix it, but your error is not supposed to happen (i.e. |
I am still hitting this error with Ubuntu 18.04 and Puppet 5.4.0-2ubuntu3. Any way that I can better debug this? |
Ok, it seems that |
It should not require |
The problem is with Facter 3.x, the C implementation runs "augparse --version" to find the version instead of using the Ruby library. The old Ruby implementation works just fine without augeas-tools installed. One possible workaround is to include that implementation as a plugin fact... Tested on Ubuntu Bionic with facter 3.10.0-4 |
hi, I've changed the line https://github.com/camptocamp/puppet-augeas/blob/8e605057c0b3f45b4cf36b13e1ad292fc3b63b88/manifests/lens.pp#L61 from:
to:
than the problem disapears. cu denny |
The proposed patch worked for me. |
I"m seeing this same issue on a Debian Buster install, and the proposed patch fixes it. Presumably this isn't merged because of the failing ci test:
Is there something that can be done to fix the test or is there a different/better way to solve the problem? |
Actually, we should use This will also fix the linting issue |
Thanks for improving my PR! 🇨🇭 |
Thanks, this works for me. Can we do a forge release? |
Fixes: