saz / puppet-sudo

Manage sudo with Puppet on Debian-, RedHat- and SUSE-based linux distributions and some BSDs
Other
105 stars 215 forks source link

Use versioncmp function to compare Debian vers in param class. #154

Closed mandos closed 8 years ago

mandos commented 8 years ago

Current comparison method don't work on puppet 2.7 with ruby 1.8.x and using versioncmp is more elegant.

Change-Id: I5b2f869c49ce964a366773339c42934a30ac09e2

ghoneycutt commented 8 years ago

versioncmp() expects strings. Try this

if (versioncmp("${::operatingsystemmajrelease}", '7') >= 0) { # lint:ignore:only_variable_string