-
Notifications
You must be signed in to change notification settings - Fork 217
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
'versioncmp' parameter 'a' expects a String value, got Undef #279
Comments
Module Version 7.0.2 |
Hello, This is important, it's broken on all RedHat family at least, since puppet 4 versioncmp function only accepts strings. Centos: 7.9 Change line 87 on puppet master from: To: |
I just ran into this issue this past week and found a fix/workaround that might help others before it gets fixed in the sudo module. This was all done with CentOS7, so I am not sure if it would be prevalent in other versions. In the following rb file, it looks like the https://github.com/saz/puppet-sudo/blob/master/lib/facter/sudoversion.rb Whenever I tried to run that command manually, I got the following: https://bugzilla.redhat.com/show_bug.cgi?id=1319936 So if you run into errors with the sudo module, check the PATH for I hope this helps others save some time. |
@kilianw can you check, if you're seeing the same as reported by @dwest-galois ? Tests are working fine on CentOS 7 and I'm confused, how's that possible. |
@saz - My testing has been successful on CentOS 7, Alma 8 and Ubuntu 20. The redhat devtoolset isn't installed. |
As this issue is related to some additional package on RedHat, it's not helping to fix the issue by just converting the fact to a string. Instead, I'd rather change the fact:
This should keep the fact compatible on all systems and fix it, if the |
Is this change still needed? 🤔 |
As I've not received feedback, I'll close this issue. Feel free to give me an update, if this issue still needs to be fixed. |
I have not run into this issue with CentOS 9-Stream (or 8-stream for that matter), yet. Since CentOS 7 is now EOL, I am content with closing this out. |
Looks like these are still valid issues:
#264
#260
The text was updated successfully, but these errors were encountered: