Skip to content

Commit ef2b671

Browse files
committed
Fix version comparison for RedHat 10+
1 parent 1e55070 commit ef2b671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@
476476
}
477477

478478
## Additional graceful failures
479-
if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] < '7' and $facts['os']['name'] != 'Amazon' {
479+
if $facts['os']['family'] == 'RedHat' and versioncmp($facts['os']['release']['major'], '7') < 0 and $facts['os']['name'] != 'Amazon' {
480480
fail("Unsupported platform: puppetlabs-${module_name} only supports RedHat 7.0 and beyond.")
481481
}
482482
}

0 commit comments

Comments
 (0)