From 694fd4d6d92c868e3ec52b021961e43b04903db1 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Fri, 17 Feb 2023 09:22:29 -0800 Subject: (MODULES-11371) Updates legacy facts Legacy facts are removed in Puppet 8. This commit updates a spec file from using legacy facts to using structured facts. --- spec/spec_helper_acceptance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 9922084..660c1ce 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -51,7 +51,7 @@ end def setup(agent, o = {}) o = { user: 'tstuser' }.merge(o) apply_manifest_on(agent, %(user { '%s': ensure => present, managehome => false }) % o[:user]) - apply_manifest_on(agent, %(case $operatingsystem { + apply_manifest_on(agent, %(case $facts['os']['name'] { centos, redhat, fedora: {$cron = 'cronie'} solaris: { $cron = 'core-os' } default: {$cron ='cron'} } -- cgit v1.2.3