Skip to content

Commit 36922cc

Browse files
committed
fix(ietd.tmpl): fix salt-lint errors
```bash Examining iscsi/target/config/files/default/ietd.tmpl of type state [206] Jinja variables should have spaces before and after: {{ var_name }} iscsi/target/config/files/default/ietd.tmpl:17 {{shift}}{{ key }} [206] Jinja variables should have spaces before and after: {{ var_name }} iscsi/target/config/files/default/ietd.tmpl:20 {{shift}}{{ key }} {{ "'" if value is not string else ''}}{{ value }}{{"'" if value is not string else ''}} ```
1 parent f2f6f4c commit 36922cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iscsi/target/config/files/default/ietd.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
{%- macro ietd(key, value, spaces=0, last=False) -%}
1515
{%- set shift = spaces * ' ' -%}
1616
{%- if value is mapping %}
17-
{{shift}}{{ key }}
17+
{{ shift }}{{ key }}
1818
{{ readconf(value, spaces|int+4) }}
1919
{%- elif value is string or value is number %}
20-
{{shift}}{{ key }} {{ "'" if value is not string else ''}}{{ value }}{{"'" if value is not string else ''}}
20+
{{ shift }}{{ key }} {{ "'" if value is not string else '' }}{{ value }}{{ "'" if value is not string else '' }}
2121
{%- endif %}
2222
{%- endmacro -%}
2323

0 commit comments

Comments
 (0)