diff options
author | Michael Hashizume <michael.hashizume@puppet.com> | 2023-02-17 09:22:29 -0800 |
---|---|---|
committer | Michael Hashizume <michael.hashizume@puppet.com> | 2023-02-17 09:22:29 -0800 |
commit | 694fd4d6d92c868e3ec52b021961e43b04903db1 (patch) | |
tree | ffd588e1929c4f49dfd60f83be4a1d2fa7acde34 | |
parent | 60f49af446cec86b4e27214c0327bdb6948978b2 (diff) | |
download | puppet-cron_core-694fd4d6d92c868e3ec52b021961e43b04903db1.tar.gz puppet-cron_core-694fd4d6d92c868e3ec52b021961e43b04903db1.tar.bz2 |
(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.
-rw-r--r-- | spec/spec_helper_acceptance.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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'} } |