From: Peter Palfrader Date: Thu, 5 Nov 2015 19:23:57 +0000 (+0100) Subject: try this X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f54b1984840864fd91bb20c423d1034845d10d87;p=mirror%2Fdsa-puppet.git try this --- 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 2c826b965..f49555c72 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