From bb4c8e9b6a050085e567379071699bd3b9271641 Mon Sep 17 00:00:00 2001 From: psy Date: Fri, 15 Jan 2021 12:39:33 +0100 Subject: [PATCH] indent --- templates/local.d.config.j2 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/local.d.config.j2 b/templates/local.d.config.j2 index 333e9e2..6919fea 100644 --- a/templates/local.d.config.j2 +++ b/templates/local.d.config.j2 @@ -1,15 +1,15 @@ {%- macro keyvalue(key, value, depth=0) -%} -{%- if value is string -%} -{{ key }}="{{ value }}"; -{%- elif value is mapping %} -{{ key }} { - {% for key, value in value.items() %} - {{ keyvalue(key, value) }} - {% endfor %} -} -{% elif value is iterable and (value is not string and value is not mapping) -%} -{{ key }}=["{{ value|join('", "') }}"]; -{%- endif -%} + {%- if value is string -%} + {{ key }}="{{ value }}"; + {%- elif value is mapping %} + {{ key }} { + {% for key, value in value.items() %} + {{ keyvalue(key, value) }} + {% endfor %} + } + {% elif value is iterable and (value is not string and value is not mapping) -%} + {{ key }}=["{{ value|join('", "') }}"]; + {%- endif -%} {%- endmacro -%} # {{ ansible_managed }}