Skip to content

Commit

Permalink
fix(interfaces.sls): fix salt-lint errors
Browse files Browse the repository at this point in the history
```bash
Examining ufw/config/interfaces.sls of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/interfaces.sls:20
ufw-interface-{{interface_name}}:

[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/interfaces.sls:22
    - interface: {{interface_name}}

[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/interfaces.sls:24
    - comment: '"{{comment}}"'
```
  • Loading branch information
myii committed Oct 9, 2019
1 parent 71eed47 commit 0c9440e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ufw/config/interfaces.sls
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ include:
{%- for interface_name, interface_details in ufw.get('interfaces', {}).items() %}
{%- set comment = interface_details.get('comment', None) %}
ufw-interface-{{interface_name}}:
ufw-interface-{{ interface_name }}:
ufw.allowed:
- interface: {{interface_name}}
- interface: {{ interface_name }}
{%- if comment is not none %}
- comment: '"{{comment}}"'
- comment: '"{{ comment }}"'
{%- endif %}
- listen_in:
- cmd: reload-ufw
Expand Down

0 comments on commit 0c9440e

Please sign in to comment.