lib/beaker-puppet/helpers/puppet_helpers.rb in beaker-puppet-1.5.0 vs lib/beaker-puppet/helpers/puppet_helpers.rb in beaker-puppet-1.6.0
- old
+ new
@@ -870,10 +870,10 @@
break
end
else
on master, 'puppetserver ca sign --all', :acceptable_exit_codes => [0, 24]
out = on(master, 'puppetserver ca list --all').stdout
- unless out =~ /.*Requested.*/
+ if out !~ /.*Requested.*/ && hostnames.all? { |hostname| out =~ /\b#{hostname}\b/ }
hostnames.clear
break
end
end