Skip to content

Commit a5c142f

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

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
@@ -104,7 +104,7 @@
104104
}
105105
}
106106

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

0 commit comments

Comments
 (0)