Skip to content

Commit a014e55

Browse files
committed
fix(user.sls): fix salt-lint errors
```bash Examining mysql/user.sls of type state [202] Jinja statement should have spaces before and after: {% statement %} mysql/user.sls:35 {% set state_id = 'mysql_user_' ~ name ~ '_' ~ host%} [206] Jinja variables should have spaces before and after: {{ var_name }} mysql/user.sls:100 - grant: {{db['grants']|join(",")}} ```
1 parent 764dd0c commit a014e55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysql/user.sls

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ include:
3232
3333
{% for host in user_hosts %}
3434
35-
{% set state_id = 'mysql_user_' ~ name ~ '_' ~ host%}
35+
{% set state_id = 'mysql_user_' ~ name ~ '_' ~ host %}
3636
{{ state_id }}:
3737
{%- if user.get('present', True) %}
3838
mysql_user.present:
@@ -97,7 +97,7 @@ include:
9797
{{ state_id ~ '_' ~ loop.index0 }}:
9898
mysql_grants.present:
9999
- name: {{ name ~ '_' ~ db['database'] ~ '_' ~ db['table'] | default('all') }}
100-
- grant: {{db['grants']|join(",")}}
100+
- grant: {{ db['grants']|join(",") }}
101101
- database: '{{ db['database'] }}.{{ db['table'] | default('*') }}'
102102
- grant_option: {{ db['grant_option'] | default(False) }}
103103
{% if 'ssl' in user or 'ssl-X509' in user %}

0 commit comments

Comments
 (0)