]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb
use ports in debug output
[dsa-puppet.git] / modules / puppetmaster / lib / puppet / parser / functions / gen_tlsa_entry.rb
index 9a65a5b7482965420ff00ccced1cd1428706d589..2c826b9653b19d17f650036eec3357b128b7ec06 100644 (file)
@@ -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]