Skip to content

Commit 694fd4d

Browse files
committed
(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.
1 parent 60f49af commit 694fd4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper_acceptance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def clean(agent, o = {})
5151
def setup(agent, o = {})
5252
o = { user: 'tstuser' }.merge(o)
5353
apply_manifest_on(agent, %(user { '%s': ensure => present, managehome => false }) % o[:user])
54-
apply_manifest_on(agent, %(case $operatingsystem {
54+
apply_manifest_on(agent, %(case $facts['os']['name'] {
5555
centos, redhat, fedora: {$cron = 'cronie'}
5656
solaris: { $cron = 'core-os' }
5757
default: {$cron ='cron'} }

0 commit comments

Comments
 (0)