From 632ad83fbee3a88e0798a051286cf6cbfb2dff51 Mon Sep 17 00:00:00 2001 From: Henrik Hansson Date: Tue, 8 Mar 2022 13:57:24 +0100 Subject: [PATCH] Use os.release.major instead of os.release.full Co-authored-by: Ewoud Kohl van Wijngaarden --- manifests/package/redhat.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',