Skip to content

versioncmp parameter compatibility #959

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

Merged
merged 2 commits into from
Jun 15, 2017

Conversation

devcfgc
Copy link
Contributor

@devcfgc devcfgc commented Jun 15, 2017

The error I was getting was:

Error: Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'a' expects a String value, got Undef at '/puppetlabs-mysql/manifest/params.pp'....

Puppet 4 introduces strong type checking so after this change it will work on puppet 4 and puppet 3
from
if versioncmp($::operatingsystemmajrelease, '14.10') > 0 {
to
if versioncmp("${::operatingsystemmajrelease}", '14.10') > 0 {

@igalic igalic merged commit b81fd56 into puppetlabs:master Jun 15, 2017
@igalic
Copy link
Contributor

igalic commented Jun 15, 2017

@devcfgc thanks a lot for catching & fixing this!

@devcfgc devcfgc deleted the versioncmp_param_compatibility branch June 15, 2017 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants