diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-03 20:23:51 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-03 20:23:51 +0100 |
commit | 0b0eb34a5348833353cf038e13b1574af3403808 (patch) | |
tree | ce49385dfb3128953427db27bacf3234ac55ebcd | |
parent | networking (diff) | |
download | networking-0b0eb34a5348833353cf038e13b1574af3403808.tar.gz networking-0b0eb34a5348833353cf038e13b1574af3403808.tar.xz |
Allow lists in networkd config.
-rw-r--r-- | templates/unit_file.epp | 4 |
1 files changed, 4 insertions, 0 deletions
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 %> +<%- } -%> <%- }} -%> |