Skip to content

Commit

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

[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/applications.sls:32
ufw-app-{{method}}-{{app_name}}:

[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/applications.sls:34
  ufw.{{method}}:

[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/applications.sls:35
    - app: '"{{app_name}}"'

[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/applications.sls:37
    - from_addr: {{from_addr}}

[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/applications.sls:40
    - to_addr: {{to_addr}}

[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/applications.sls:45
    - comment: '"{{comment}}"'
```
  • Loading branch information
myii committed Oct 9, 2019
1 parent 6c112af commit 71eed47
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ufw/config/applications.sls
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ include:
{%- set comment = app_details.get('comment', None) %}
{%- if from_addr is not none %}
ufw-app-{{method}}-{{app_name}}-{{from_addr}}:
ufw-app-{{ method }}-{{ app_name }}-{{ from_addr }}:
{%- else %}
ufw-app-{{method}}-{{app_name}}:
ufw-app-{{ method }}-{{ app_name }}:
{%- endif %}
ufw.{{method}}:
- app: '"{{app_name}}"'
ufw.{{ method }}:
- app: '"{{ app_name }}"'
{%- if from_addr is not none %}
- from_addr: {{from_addr}}
- from_addr: {{ from_addr }}
{%- endif %}
{%- if to_addr is not none %}
- to_addr: {{to_addr}}
- to_addr: {{ to_addr }}
{%- endif %}
# Debian Jessie doesn't implement the **comment** directive
# CentOS-6 throws an UTF-8 error
{%- if comment is not none and salt['grains.get']('osfinger') != 'Debian-8' and salt['grains.get']('osfinger') != 'CentOS-6' %}
- comment: '"{{comment}}"'
- comment: '"{{ comment }}"'
{%- endif %}
- listen_in:
- cmd: reload-ufw
Expand Down

0 comments on commit 71eed47

Please sign in to comment.