summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2014-06-24 11:37:34 -0700
committerHunter Haugen <hunter@puppetlabs.com>2014-06-24 11:37:34 -0700
commitca35be6480a5935a4b0e0721bdb726934269e433 (patch)
tree967583b55532d34dc657745a4a52769868500500 /spec
parent7a796885d5da3a0d52b0e9ed7e25b6afa3fa4256 (diff)
Fix pe facts and slashes
Diffstat (limited to 'spec')
-rwxr-xr-xspec/acceptance/fqdn_rotate_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/acceptance/fqdn_rotate_spec.rb b/spec/acceptance/fqdn_rotate_spec.rb
index 2527c28..bc02eb6 100755
--- a/spec/acceptance/fqdn_rotate_spec.rb
+++ b/spec/acceptance/fqdn_rotate_spec.rb
@@ -4,12 +4,12 @@ require 'spec_helper_acceptance'
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'