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(",")}}
```
This commit is contained in:
Imran Iqbal 2019-10-09 14:35:44 +01:00
parent 764dd0c489
commit a014e5539b
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819

View file

@ -32,7 +32,7 @@ include:
{% for host in user_hosts %}
{% set state_id = 'mysql_user_' ~ name ~ '_' ~ host%}
{% set state_id = 'mysql_user_' ~ name ~ '_' ~ host %}
{{ state_id }}:
{%- if user.get('present', True) %}
mysql_user.present:
@ -97,7 +97,7 @@ include:
{{ state_id ~ '_' ~ loop.index0 }}:
mysql_grants.present:
- name: {{ name ~ '_' ~ db['database'] ~ '_' ~ db['table'] | default('all') }}
- grant: {{db['grants']|join(",")}}
- grant: {{ db['grants']|join(",") }}
- database: '{{ db['database'] }}.{{ db['table'] | default('*') }}'
- grant_option: {{ db['grant_option'] | default(False) }}
{% if 'ssl' in user or 'ssl-X509' in user %}