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
2 people authored and qhenhan committed Nov 16, 2022
1 parent ce8704f commit a5c142f
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 @@ -104,7 +104,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 a5c142f

Please sign in to comment.