Skip to content

Commit fa96854

Browse files
committed
future parser converts explicit undef to empty string
With the future parser and puppet 4, explicit undef seems to be converted to blank string for erb templates This change allows you to continue to omit config options in the main my.cnf
1 parent fbef97d commit fa96854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/my.cnf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<% vi.each do |vii| -%>
1111
<%= ki %> = <%= vii %>
1212
<% end -%>
13-
<% elsif vi != :undef -%>
13+
<% elsif ![nil, '', :undef].include?(vi) -%>
1414
<%= ki %> = <%= vi %>
1515
<% end -%>
1616
<% end -%>

0 commit comments

Comments
 (0)