File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44describe 'fqdn_rand_string function' , :unless => UNSUPPORTED_PLATFORMS . include? ( fact ( 'operatingsystem' ) ) do
55 describe 'success' do
66 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"
89 if fact ( 'osfamily' ) =~ /windows/i
910 if fact ( 'kernelmajversion' ) . to_f < 6.0
1011 'c:/documents and settings/all users/application data/puppetlabs/facter/facts.d'
Original file line number Diff line number Diff line change 44describe 'fqdn_rotate function' , :unless => UNSUPPORTED_PLATFORMS . include? ( fact ( 'operatingsystem' ) ) do
55 describe 'success' do
66 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"
89 if fact ( 'osfamily' ) =~ /windows/i
910 if fact ( 'kernelmajversion' ) . to_f < 6.0
1011 'C:/Documents and Settings/All Users/Application Data/PuppetLabs/facter/facts.d'
You can’t perform that action at this time.
0 commit comments