Skip to content
This repository was archived by the owner on Feb 21, 2018. It is now read-only.

Fix Puppet 4 string comparison (second attempt) #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pebtron
Copy link
Contributor

@pebtron pebtron commented Feb 25, 2016

Puppet 4 types the fact operatingsystemmajrelease as a string but a comparison against the integer 5 will now fail. As a fix, use the versioncmp() function to compare both strings. versioncmp() exists in Puppet 3 but I'm unable to test if this will work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant