Skip to content

Commit 94c95f5

Browse files
committed
fix(lio.tmpl): fix salt-lint errors
```bash Examining iscsi/target/config/files/default/lio.tmpl of type state [209] Jinja comment should have spaces before and after: {# comment #} iscsi/target/config/files/default/lio.tmpl:1 {#######################################################} [201] Trailing whitespace iscsi/target/config/files/default/lio.tmpl:3 {# salt://iscsi/target/config/files/default/lio.tmpl #} [201] Trailing whitespace iscsi/target/config/files/default/lio.tmpl:4 {# Your changes may get overwritten. #} [209] Jinja comment should have spaces before and after: {# comment #} iscsi/target/config/files/default/lio.tmpl:5 {#######################################################} [201] Trailing whitespace iscsi/target/config/files/default/lio.tmpl:7 {% set arrays = ('fabric_modules', 'storage_objects', 'alua_tpgs', 'targets', 'node_acls', 'luns', 'mapped_luns', 'portals')%} [202] Jinja statement should have spaces before and after: {% statement %} iscsi/target/config/files/default/lio.tmpl:7 {% set arrays = ('fabric_modules', 'storage_objects', 'alua_tpgs', 'targets', 'node_acls', 'luns', 'mapped_luns', 'portals')%} [201] Trailing whitespace iscsi/target/config/files/default/lio.tmpl:32 {{ '\n' ~ shift ~ '}' if last and parent|lower in ('tpgs',) else '' -}} ```
1 parent 36922cc commit 94c95f5

File tree

1 file changed

+6
-6
lines changed
  • iscsi/target/config/files/default

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{#######################################################}
1+
{# ################################################### #}
22
{# File managed by Salt at: #}
3-
{# salt://iscsi/target/config/files/default/lio.tmpl #}
4-
{# Your changes may get overwritten. #}
5-
{#######################################################}
3+
{# salt://iscsi/target/config/files/default/lio.tmpl #}
4+
{# Your changes may get overwritten. #}
5+
{# ################################################### #}
66

7-
{% set arrays = ('fabric_modules', 'storage_objects', 'alua_tpgs', 'targets', 'node_acls', 'luns', 'mapped_luns', 'portals')%}
7+
{% set arrays = ('fabric_modules', 'storage_objects', 'alua_tpgs', 'targets', 'node_acls', 'luns', 'mapped_luns', 'portals') %}
88

99
{%- if data and component -%}
1010

@@ -29,7 +29,7 @@
2929
{{ shift ~ ' }' if last else shift ~ ' },\n' }}
3030
{%- elif value is string or value is number %}
3131
{{ shift }}"{{ key }}": {{ '' if value is number else '"' }}{{ value }}{{ '' if value is number else '"' }}{{ '' if last else ',' -}}
32-
{{ '\n' ~ shift ~ '}' if last and parent|lower in ('tpgs',) else '' -}}
32+
{{ '\n' ~ shift ~ '}' if last and parent|lower in ('tpgs',) else '' -}}
3333
{%- endif %}
3434
{%- endmacro -%}
3535

0 commit comments

Comments
 (0)