X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=blobdiff_plain;f=modules%2Fpuppetmaster%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fgen_tlsa_entry.rb;h=f49555c7272b93bd6528d993336e8c3dcd248ea3;hp=2c826b9653b19d17f650036eec3357b128b7ec06;hb=f54b1984840864fd91bb20c423d1034845d10d87;hpb=90461a264b17c567a0d673317d424897bea75571 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 2c826b96..f49555c7 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb @@ -12,7 +12,7 @@ module Puppet::Parser::Functions res = [] res << "; cert #{certfile} for #{hostname}:#{ports}." - ports.each { |port| + ports.each do |port| cf = certfile if File.exist?(cf) cmd = ['swede', 'create', '--usage=3', '--selector=1', '--mtype=1', '--certificate', cf, '--port', port.to_s, hostname] @@ -29,7 +29,7 @@ module Puppet::Parser::Functions res << new_entry end end - } + end return res.join("\n") end