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:
```
This commit is contained in:
Imran Iqbal 2022-02-11 22:49:27 +00:00
parent 62eb687b05
commit 6a33d98d75
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
2 changed files with 6 additions and 6 deletions

View File

@ -144,11 +144,11 @@ postfix-config-file-managed-{{ mapping }}:
- pkg: postfix-init-pkg-installed-postfix - pkg: postfix-init-pkg-installed-postfix
- file: postfix-config-file-managed-main.cf - file: postfix-config-file-managed-main.cf
{%- if need_postmap %} {%- if need_postmap %}
postfix-config-cmd-wait-{{ mapping }}: postfix-config-cmd-run-{{ mapping }}:
cmd.wait: cmd.run:
- name: {{ postfix.xbin_prefix }}/sbin/postmap {{ file_path }} - name: {{ postfix.xbin_prefix }}/sbin/postmap {{ file_path }}
- cwd: / - cwd: /
- watch: - onchanges:
- file: postfix-config-file-managed-{{ mapping }} - file: postfix-config-file-managed-{{ mapping }}
- watch_in: - watch_in:
- service: postfix-init-service-running-postfix - service: postfix-init-service-running-postfix

View File

@ -76,11 +76,11 @@ postfix-init-file-managed-alias-database:
- pkg: postfix-init-pkg-installed-postfix - pkg: postfix-init-pkg-installed-postfix
{%- if need_newaliases %} {%- if need_newaliases %}
postfix-init-cmd-wait-new-aliases: postfix-init-cmd-run-new-aliases:
cmd.wait: cmd.run:
- name: newaliases - name: newaliases
- cwd: / - cwd: /
- watch: - onchanges:
- file: {{ file_path }} - file: {{ file_path }}
{%- endif %} {%- endif %}
{% else %} {% else %}