Skip to content

Commit 6a33d98

Browse files
committed
refactor(salt-lint): fix violations
``` [213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait postfix/config.sls:148 cmd.wait: [213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait postfix/init.sls:80 cmd.wait: ```
1 parent 62eb687 commit 6a33d98

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

postfix/config.sls

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ postfix-config-file-managed-{{ mapping }}:
144144
- pkg: postfix-init-pkg-installed-postfix
145145
- file: postfix-config-file-managed-main.cf
146146
{%- if need_postmap %}
147-
postfix-config-cmd-wait-{{ mapping }}:
148-
cmd.wait:
147+
postfix-config-cmd-run-{{ mapping }}:
148+
cmd.run:
149149
- name: {{ postfix.xbin_prefix }}/sbin/postmap {{ file_path }}
150150
- cwd: /
151-
- watch:
151+
- onchanges:
152152
- file: postfix-config-file-managed-{{ mapping }}
153153
- watch_in:
154154
- service: postfix-init-service-running-postfix

postfix/init.sls

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ postfix-init-file-managed-alias-database:
7676
- pkg: postfix-init-pkg-installed-postfix
7777
7878
{%- if need_newaliases %}
79-
postfix-init-cmd-wait-new-aliases:
80-
cmd.wait:
79+
postfix-init-cmd-run-new-aliases:
80+
cmd.run:
8181
- name: newaliases
8282
- cwd: /
83-
- watch:
83+
- onchanges:
8484
- file: {{ file_path }}
8585
{%- endif %}
8686
{% else %}

0 commit comments

Comments
 (0)