diff --git a/manifests/package/redhat.pp b/manifests/package/redhat.pp index 35b42ba14..05f0e9133 100644 --- a/manifests/package/redhat.pp +++ b/manifests/package/redhat.pp @@ -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',