Skip to content

Commit fb836e7

Browse files
authored
Merge pull request #70 from puppetlabs/issue/master/pe-25146-checkfor-hostnames
(PE-25146) Check for hostnames when puppetserver signing
2 parents fbefb88 + b929a01 commit fb836e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/beaker-puppet/helpers/puppet_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ def sign_certificate_for(host = [])
872872
else
873873
on master, 'puppetserver ca sign --all', :acceptable_exit_codes => [0, 24]
874874
out = on(master, 'puppetserver ca list --all').stdout
875-
unless out =~ /.*Requested.*/
875+
if out !~ /.*Requested.*/ && hostnames.all? { |hostname| out =~ /\b#{hostname}\b/ }
876876
hostnames.clear
877877
break
878878
end

0 commit comments

Comments
 (0)