Skip to content

Commit

Permalink
Merge pull request #70 from puppetlabs/issue/master/pe-25146-checkfor…
Browse files Browse the repository at this point in the history
…-hostnames

(PE-25146) Check for hostnames when puppetserver signing
  • Loading branch information
Magisus authored Sep 14, 2018
2 parents fbefb88 + b929a01 commit fb836e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/beaker-puppet/helpers/puppet_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def sign_certificate_for(host = [])
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
Expand Down

0 comments on commit fb836e7

Please sign in to comment.