]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Fix pe facts and slashes
authorHunter Haugen <hunter@puppetlabs.com>
Tue, 24 Jun 2014 18:37:34 +0000 (11:37 -0700)
committerHunter Haugen <hunter@puppetlabs.com>
Tue, 24 Jun 2014 18:37:34 +0000 (11:37 -0700)
spec/acceptance/fqdn_rotate_spec.rb

index 2527c28daf8478c484e6e2b28cb318f28e683f76..bc02eb6b1d73011e02aef7d1bdad4f7e9195462d 100755 (executable)
@@ -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'