Skip to content

Commit 03445d0

Browse files
committed
Fix version check in CentOS Stream 10
Use versioncmp to make sure 10 is considered newer than 7. Closes: #1673
1 parent 1e55070 commit 03445d0

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)