From 0b0eb34a5348833353cf038e13b1574af3403808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 3 Jan 2022 20:23:51 +0100 Subject: Allow lists in networkd config. --- templates/unit_file.epp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/unit_file.epp b/templates/unit_file.epp index 2cbfefb..00d486a 100644 --- a/templates/unit_file.epp +++ b/templates/unit_file.epp @@ -3,5 +3,9 @@ <%- $data.each |$key, $sub| { -%> [<%= $key %>] <%- $sub.each |$k, $v| { -%> +<%- if $v =~ Array { $v.each |$v| { -%> <%= $k %>=<%= $v %> +<%- } } else { -%> +<%= $k %>=<%= $v %> +<%- } -%> <%- }} -%> -- cgit v1.2.3