Skip to content

Commit 632ad83

Browse files
Henrik-Hanssonekohl
andcommitted
Use os.release.major instead of os.release.full
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
1 parent fd5bf2c commit 632ad83

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)