Skip to content

Commit 1dd3b92

Browse files
committed
Update join_keys_to_values with an undef statement.
1 parent f71f4a2 commit 1dd3b92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/puppet/parser/functions/join_keys_to_values.rb

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ module Puppet::Parser::Functions
4141
hash.map { |k, v|
4242
if v.is_a?(Array)
4343
v.map { |va| String(k) + separator + String(va) }
44+
elsif String(v) == 'undef'
45+
String(k)
4446
else
4547
String(k) + separator + String(v)
4648
end

0 commit comments

Comments
 (0)