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}}
```
This commit is contained in:
Imran Iqbal 2019-10-09 18:57:20 +01:00
parent bb27b940ea
commit 4cec0ef4cc
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819

View File

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