refactor(salt-lint): fix violation

```
[213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait
mysql/database.sls:62
  cmd.wait:
```
This commit is contained in:
Imran Iqbal 2022-02-11 22:46:59 +00:00
parent d9a2eb505b
commit 7b62a627e0
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819

View file

@ -59,9 +59,9 @@ include:
- makedirs: True
{{ state_id }}_load:
cmd.wait:
cmd.run:
- name: mysql -u {{ mysql_salt_user }} -h{{ mysql_host }} {% if mysql_salt_pass %}-p{%- endif %}{{ mysql_salt_pass }} {{ database }} < /etc/mysql/{{ database }}.schema
- watch:
- onchanges:
- file: {{ state_id }}_schema
- mysql_database: {{ state_id }}
{%- endif %}