浏览代码

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

```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}}"'
```
tags/v0.5.2
Imran Iqbal 5 年前
父节点
当前提交
0c9440e4cd
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      ufw/config/interfaces.sls

+ 3
- 3
ufw/config/interfaces.sls 查看文件

@@ -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

正在加载...
取消
保存