Pārlūkot izejas kodu

fix(open.sls): fix `salt-lint` errors

```bash
Examining ufw/config/open.sls of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/open.sls:20
ufw-open-{{open_addr}}:

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

[206] Jinja variables should have spaces before and after: {{ var_name }}
ufw/config/open.sls:24
    - comment: '"{{comment}}"'
```
tags/v0.5.2
Imran Iqbal pirms 5 gadiem
vecāks
revīzija
c8b314bac8
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      ufw/config/open.sls

+ 3
- 3
ufw/config/open.sls Parādīt failu

@@ -17,11 +17,11 @@ include:
{%- for open_addr, open_details in ufw.get('open', {}).items() %}
{%- set comment = open_details.get('comment', None) %}

ufw-open-{{open_addr}}:
ufw-open-{{ open_addr }}:
ufw.allowed:
- from_addr: {{open_addr}}
- from_addr: {{ open_addr }}
{%- if comment is not none %}
- comment: '"{{comment}}"'
- comment: '"{{ comment }}"'
{%- endif %}
- listen_in:
- cmd: reload-ufw

Notiek ielāde…
Atcelt
Saglabāt