From: Peter Palfrader Date: Thu, 5 Nov 2015 19:21:40 +0000 (+0100) Subject: use ports in debug output X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=90461a264b17c567a0d673317d424897bea75571;p=mirror%2Fdsa-puppet.git use ports in debug output --- diff --git a/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb b/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb index 9a65a5b74..2c826b965 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb @@ -11,8 +11,8 @@ module Puppet::Parser::Functions end res = [] - res << "; cert #{certfile} for #{hostname}:#{port}." - ports.each{ |port| + res << "; cert #{certfile} for #{hostname}:#{ports}." + ports.each { |port| cf = certfile if File.exist?(cf) cmd = ['swede', 'create', '--usage=3', '--selector=1', '--mtype=1', '--certificate', cf, '--port', port.to_s, hostname]