Skip to content

Commit

Permalink
Merge pull request redhat-openstack#287 from hunner/rotate
Browse files Browse the repository at this point in the history
Fix pe facts and slashes
  • Loading branch information
hunner committed Jun 24, 2014
2 parents 7a79688 + ca35be6 commit 977c6c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/acceptance/fqdn_rotate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
describe 'fqdn_rotate function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
describe 'success' do
let(:facts_d) do
if fact('is_pe') == "true"
if fact('is_pe', '--puppet') == "true"
if fact('osfamily') =~ /windows/i
if fact('kernelmajversion').to_f < 6.0
'C:\Documents and Settings\All Users\Application Data\PuppetLabs\facter\facts.d'
'C:\\Documents and Settings\\All Users\\Application Data\\PuppetLabs\\facter\\facts.d'
else
'C:\ProgramData\PuppetLabs\facter\facts.d'
'C:\\ProgramData\\PuppetLabs\\facter\\facts.d'
end
else
'/etc/puppetlabs/facter/facts.d'
Expand Down

0 comments on commit 977c6c5

Please sign in to comment.