mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 09:40:26 +00:00
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:
parent
764dd0c489
commit
a014e5539b
1 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Reference in a new issue