File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
describe 'fqdn_rand_string function' , :unless => UNSUPPORTED_PLATFORMS . include? ( fact ( 'operatingsystem' ) ) do
5
5
describe 'success' do
6
6
let ( :facts_d ) do
7
- if fact ( 'is_pe' , '--puppet' ) == "true"
7
+ puppet_version = ( on default , puppet ( '--version' ) ) . output . chomp
8
+ if puppet_version < '4.0.0' && fact ( 'is_pe' , '--puppet' ) == "true"
8
9
if fact ( 'osfamily' ) =~ /windows/i
9
10
if fact ( 'kernelmajversion' ) . to_f < 6.0
10
11
'c:/documents and settings/all users/application data/puppetlabs/facter/facts.d'
Original file line number Diff line number Diff line change 4
4
describe 'fqdn_rotate function' , :unless => UNSUPPORTED_PLATFORMS . include? ( fact ( 'operatingsystem' ) ) do
5
5
describe 'success' do
6
6
let ( :facts_d ) do
7
- if fact ( 'is_pe' , '--puppet' ) == "true"
7
+ puppet_version = ( on default , puppet ( '--version' ) ) . output . chomp
8
+ if puppet_version < '4.0.0' && fact ( 'is_pe' , '--puppet' ) == "true"
8
9
if fact ( 'osfamily' ) =~ /windows/i
9
10
if fact ( 'kernelmajversion' ) . to_f < 6.0
10
11
'C:/Documents and Settings/All Users/Application Data/PuppetLabs/facter/facts.d'
You can’t perform that action at this time.
0 commit comments