Arrays do not seem to work, use strings for now
[mirror/dsa-puppet.git] / modules / puppetmaster / lib / puppet / parser / functions / gen_tlsa_entry.rb
index 53a4922..9a65a5b 100644 (file)
@@ -4,10 +4,10 @@ module Puppet::Parser::Functions
     hostname = args.shift()
     port = args.shift()
 
-    if port.kind_of?(Array)
-      ports = port
+    if port.kind_of?(String)
+      ports = port.split()
     else
-      ports = [ port ]
+      ports = port
     end
 
     res = []