Skip to content

Commit

Permalink
fix(iscsi.tmpl): fix salt-lint errors
Browse files Browse the repository at this point in the history
```bash
Examining iscsi/initiator/config/files/default/iscsi.tmpl of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
iscsi/initiator/config/files/default/iscsi.tmpl:17
{{shift}}{{ key }} {  # nickname

[206] Jinja variables should have spaces before and after: {{ var_name }}
iscsi/initiator/config/files/default/iscsi.tmpl:21
{{shift}}{{ key }} = {{"'" if value is not string else ''}}{{ value }}{{"'" if value is not string else ''}}
```
  • Loading branch information
myii committed Oct 10, 2019
1 parent 08f0d08 commit ba00ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iscsi/initiator/config/files/default/iscsi.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
{%- macro iscsi_conf(key, value, spaces=0, last=False) -%}
{%- set shift = spaces * ' ' -%}
{%- if value is mapping %}
{{shift}}{{ key }} { # nickname
{{ shift }}{{ key }} { # nickname
{{ readconf(value, spaces|int+4) }}
}
{%- elif value is string or value is number %}
{{shift}}{{ key }} = {{"'" if value is not string else ''}}{{ value }}{{"'" if value is not string else ''}}
{{ shift }}{{ key }} = {{ "'" if value is not string else '' }}{{ value }}{{ "'" if value is not string else '' }}
{% endif %}
{%- endmacro -%}

Expand Down

0 comments on commit ba00ccf

Please sign in to comment.