Skip to content

Commit fe27992

Browse files
Henrik-Hanssonekohl
andcommitted
Use os.release.major instead of os.release.full
Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
1 parent bb75862 commit fe27992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/package/redhat.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
}
9696
}
9797

98-
if $dnfmodule and fact('os.family') == 'RedHat' and versioncmp(fact('os.release.full'), '8.0') >= 0 {
98+
if $dnfmodule and fact('os.family') == 'RedHat' and versioncmp(fact('os.release.major'), '8') >= 0 {
9999
package { "nginx:${dnfmodule}":
100100
ensure => $dnfmodule,
101101
name => 'nginx',

0 commit comments

Comments
 (0)