Skip to content

Commit

Permalink
fix(init.sls): fix salt-lint errors
Browse files Browse the repository at this point in the history
```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}}
```
  • Loading branch information
myii committed Oct 9, 2019
1 parent bb27b94 commit 4cec0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions users/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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:
Expand Down

0 comments on commit 4cec0ef

Please sign in to comment.