use ports in debug output
[mirror/dsa-puppet.git] / modules / puppetmaster / lib / puppet / parser / functions / gen_tlsa_entry.rb
index 9a65a5b..2c826b9 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]