Skip to content

Commit cf38af1

Browse files
committed
fix(tgtd.tmpl): fix salt-lint errors
```bash Examining iscsi/target/config/files/default/tgtd.tmpl of type state [206] Jinja variables should have spaces before and after: {{ var_name }} iscsi/target/config/files/default/tgtd.tmpl:17 {{shift}}{{ '<' ~ key ~ '>' }} [206] Jinja variables should have spaces before and after: {{ var_name }} iscsi/target/config/files/default/tgtd.tmpl:19 {{shift}}{{ '</' ~ key.split(" ")[0] ~ '>' }} [206] Jinja variables should have spaces before and after: {{ var_name }} iscsi/target/config/files/default/tgtd.tmpl:22 {{shift}}{{ key }} {{ value }} ```
1 parent 94c95f5 commit cf38af1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
{%- macro tgtd(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) }}
19-
{{shift}}{{ '</' ~ key.split(" ")[0] ~ '>' }}
19+
{{ shift }}{{ '</' ~ key.split(" ")[0] ~ '>' }}
2020

2121
{% elif value is string or value is number %}
22-
{{shift}}{{ key }} {{ value }}
22+
{{ shift }}{{ key }} {{ value }}
2323
{%- endif %}
2424
{%- endmacro -%}
2525

0 commit comments

Comments
 (0)