From 9020d4fe5778bfe9cb7d37b5a30cec491c1f24dd 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 895a487ce..a67625415 100644 --- a/manifests/package/redhat.pp +++ b/manifests/package/redhat.pp @@ -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',