Skip to content

Commit 7b62a62

Browse files
committed
refactor(salt-lint): fix violation
``` [213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait mysql/database.sls:62 cmd.wait: ```
1 parent d9a2eb5 commit 7b62a62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysql/database.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ include:
5959
- makedirs: True
6060
6161
{{ state_id }}_load:
62-
cmd.wait:
62+
cmd.run:
6363
- name: mysql -u {{ mysql_salt_user }} -h{{ mysql_host }} {% if mysql_salt_pass %}-p{%- endif %}{{ mysql_salt_pass }} {{ database }} < /etc/mysql/{{ database }}.schema
64-
- watch:
64+
- onchanges:
6565
- file: {{ state_id }}_schema
6666
- mysql_database: {{ state_id }}
6767
{%- endif %}

0 commit comments

Comments
 (0)