Skip to content

Commit ec9355d

Browse files
committed
Copy with array or string in a better way
1 parent 4741bbc commit ec9355d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/unit_file.epp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[Unit]
99
<% $unit_entry.each | $_key, $_value | { -%>
10-
<% [$_value].flatten.each | $_subvalue | { -%>
10+
<% Array($_value, true).each | $_subvalue | { -%>
1111
<%= $_key %>=<%= $_subvalue %>
1212
<% } -%>
1313
<% } -%>
@@ -16,7 +16,7 @@
1616

1717
[Service]
1818
<% $service_entry.each | $_key, $_value | { -%>
19-
<% [$_value].flatten.each | $_subvalue | { -%>
19+
<% Array($_value, true).each | $_subvalue | { -%>
2020
<%= $_key %>=<%= $_subvalue %>
2121
<% } -%>
2222
<% } -%>
@@ -25,7 +25,7 @@
2525

2626
[Install]
2727
<% $install_entry.each | $_key, $_value | { -%>
28-
<% [$_value].flatten.each | $_subvalue | { -%>
28+
<% Array($_value, true).each | $_subvalue | { -%>
2929
<%= $_key %>=<%= $_subvalue %>
3030
<% } -%>
3131
<% } -%>

0 commit comments

Comments
 (0)