Skip to content

Commit 977c6c5

Browse files
committed
Merge pull request #287 from hunner/rotate
Fix pe facts and slashes
2 parents 7a79688 + ca35be6 commit 977c6c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/acceptance/fqdn_rotate_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
describe 'fqdn_rotate function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
55
describe 'success' do
66
let(:facts_d) do
7-
if fact('is_pe') == "true"
7+
if fact('is_pe', '--puppet') == "true"
88
if fact('osfamily') =~ /windows/i
99
if fact('kernelmajversion').to_f < 6.0
10-
'C:\Documents and Settings\All Users\Application Data\PuppetLabs\facter\facts.d'
10+
'C:\\Documents and Settings\\All Users\\Application Data\\PuppetLabs\\facter\\facts.d'
1111
else
12-
'C:\ProgramData\PuppetLabs\facter\facts.d'
12+
'C:\\ProgramData\\PuppetLabs\\facter\\facts.d'
1313
end
1414
else
1515
'/etc/puppetlabs/facter/facts.d'

0 commit comments

Comments
 (0)