Skip to content

Commit

Permalink
Use os.release.major instead of os.release.full
Browse files Browse the repository at this point in the history
Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
  • Loading branch information
Henrik-Hansson and ekohl committed Dec 19, 2022
1 parent 09bb47c commit 9020d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/package/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
}
}

if $dnfmodule and fact('os.family') == 'RedHat' and versioncmp(fact('os.release.full'), '8.0') >= 0 {
if $dnfmodule and fact('os.family') == 'RedHat' and versioncmp(fact('os.release.major'), '8') >= 0 {
package { "nginx:${dnfmodule}":
ensure => $dnfmodule,
name => 'nginx',
Expand Down

0 comments on commit 9020d4f

Please sign in to comment.