Use versioncmp function
Puppet 4 is more strict about data types and doesn't tolerate using arithmetic operators on strings. The operatingsystemrelease fact is a string. Switch the arithmetic comparison to a native function that knows how to deal with version numbers. Change-Id: I63b0ffaba89d609a8107235759653be415820d7c
This commit is contained in:
parent
e22ef04d4f
commit
013781cb46
@ -46,7 +46,7 @@ class refstack::params (
|
||||
) {
|
||||
|
||||
# Resolve a few parameters based on the install environment.
|
||||
if $::operatingsystem != 'Ubuntu' or $::operatingsystemrelease < 13.10 {
|
||||
if $::operatingsystem != 'Ubuntu' or versioncmp($::operatingsystemrelease, '13.10') < 0 {
|
||||
fail("${::operatingsystem} ${::operatingsystemrelease} is not supported.")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user