浏览代码

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

```bash
Examining users/init.sls of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
users/init.sls:176
    - expire: {{ (user['expire'] / 86400) | int}}

[206] Jinja variables should have spaces before and after: {{ var_name }}
users/init.sls:202
      - {{optional_group}}
```
tags/v0.48.1
Imran Iqbal 5 年前
父节点
当前提交
4cec0ef4cc
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      users/init.sls

+ 2
- 2
users/init.sls 查看文件

@@ -173,7 +173,7 @@ users_{{ name }}_user:
{% elif grains['kernel'] == 'Linux' and
user['expire'] > 84006 %}
{# 2932896 days since epoch equals 9999-12-31 #}
- expire: {{ (user['expire'] / 86400) | int}}
- expire: {{ (user['expire'] / 86400) | int }}
{% else %}
- expire: {{ user['expire'] }}
{% endif %}
@@ -199,7 +199,7 @@ users_{{ name }}_user:
{% if 'optional_groups' in user %}
- optional_groups:
{% for optional_group in user['optional_groups'] -%}
- {{optional_group}}
- {{ optional_group }}
{% endfor %}
{% endif %}
- require:

正在加载...
取消
保存