Unverified Commit 6a33d98d authored by Imran Iqbal's avatar Imran Iqbal
Browse files

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:
```
parent 62eb687b
......@@ -144,11 +144,11 @@ postfix-config-file-managed-{{ mapping }}:
- pkg: postfix-init-pkg-installed-postfix
- file: postfix-config-file-managed-main.cf
{%- if need_postmap %}
postfix-config-cmd-wait-{{ mapping }}:
cmd.wait:
postfix-config-cmd-run-{{ mapping }}:
cmd.run:
- name: {{ postfix.xbin_prefix }}/sbin/postmap {{ file_path }}
- cwd: /
- watch:
- onchanges:
- file: postfix-config-file-managed-{{ mapping }}
- watch_in:
- service: postfix-init-service-running-postfix
......
......@@ -76,11 +76,11 @@ postfix-init-file-managed-alias-database:
- pkg: postfix-init-pkg-installed-postfix
{%- if need_newaliases %}
postfix-init-cmd-wait-new-aliases:
cmd.wait:
postfix-init-cmd-run-new-aliases:
cmd.run:
- name: newaliases
- cwd: /
- watch:
- onchanges:
- file: {{ file_path }}
{%- endif %}
{% else %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment