Skip to content

Commit b0d99ad

Browse files
committed
Merge pull request #874 from BobVanB/UPDATE-join_keys_to_values
Handle join_keys_to_values() with undef values.
2 parents a164d36 + 1dd3b92 commit b0d99ad

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

Lines changed: 2 additions & 0 deletions
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)