Skip to content

Commit 856f23e

Browse files
author
ccarrez
committed
Allow usage of array in actions configs
1 parent 820dc35 commit 856f23e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/action.epp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ action(type="<%= $type %>"
2525
name="<%= $action_name %>"
2626
<%}-%>
2727
<% if $config { -%>
28-
<% $config.each |$k, $v| { -%>
28+
<%- if $v =~ Array { -%>
29+
<%= $k %>=[ <%= $v.map |$i| { "\"${i}\"" }.join(', ') %> ]
30+
<%- } else { -%>
2931
<%= $k %>="<%= $v %>"
30-
<%}-%>
32+
<%- } -%>
3133
<%}-%>
3234
)
3335
<%}-%>

0 commit comments

Comments
 (0)