From 90461a264b17c567a0d673317d424897bea75571 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 5 Nov 2015 20:21:40 +0100 Subject: [PATCH] use ports in debug output --- .../lib/puppet/parser/functions/gen_tlsa_entry.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] -- 2.20.1