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=baaa73b4dfcd59c08d54597a9ba0d73fe0bc180f;hp=f49555c7272b93bd6528d993336e8c3dcd248ea3;hb=d32b5ca2040af0e861851c5519aa5ff5b7887768;hpb=f54b1984840864fd91bb20c423d1034845d10d87 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 f49555c7..baaa73b4 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb @@ -4,10 +4,10 @@ module Puppet::Parser::Functions hostname = args.shift() port = args.shift() - if port.kind_of?(String) - ports = port.split() - else + if port.kind_of?(Array) ports = port + else + ports = [port] end res = []