From fabd837bcbec14e535aca57ef3c2bd132038ff36 Mon Sep 17 00:00:00 2001 From: Wayne Gemmell Date: Thu, 27 Jul 2023 16:44:14 +0200 Subject: [PATCH] fix(bug): config arrays as multiple lines --- mysql/files/server.cnf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mysql/files/server.cnf b/mysql/files/server.cnf index b7d915b..885312c 100644 --- a/mysql/files/server.cnf +++ b/mysql/files/server.cnf @@ -33,8 +33,14 @@ {% elif mvalue == "SETONPLEASE" %} {{ mparam }}{{ '='|indent(indents, true) }} ON {%- else -%} +{%- if mvalue is list -%} +{%- for value in mvalue %} +{{ mparam }}{{ '='|indent(indents, true) }} {{ value }} +{%- endfor -%} +{%- else -%} {{ mparam }}{{ '='|indent(indents, true) }} {{ mvalue }} {%- endif -%} +{%- endif -%} {%- endfor -%} {%- endif -%} {%- endfor %}