From 8c30394dca89b0591560e0d0495720af4cb6bf8c Mon Sep 17 00:00:00 2001 From: Simon Lauger Date: Thu, 13 Jul 2023 23:15:49 +0200 Subject: [PATCH] fix: replace legacy architecture fact with structed fact os.architecture Signed-off-by: Simon Lauger --- manifests/sysctl.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/sysctl.pp b/manifests/sysctl.pp index 84f0d13..741f9ad 100644 --- a/manifests/sysctl.pp +++ b/manifests/sysctl.pp @@ -30,7 +30,7 @@ ) { # set variables - if $::architecture == 'amd64' or $::architecture == 'x86_64' { + if $facts['os']['architecture'] == 'amd64' or $facts['os']['architecture'] == 'x86_64' { $x86_64 = true } else { $x86_64 = false