Skip to content

Commit bf73fca

Browse files
committed
refactor(salt-lint): fix violations
``` [213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait consul-template/install.sls:21 cmd.wait: [213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait consul/install.sls:60 cmd.wait: ```
1 parent 53f6d33 commit bf73fca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

consul-template/install.sls

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ consul-template-download:
1818
- unless: test -f /usr/local/bin/consul-template-{{ consul_template.version }}
1919
2020
consul-template-extract:
21-
cmd.wait:
21+
cmd.run:
2222
- name: unzip /tmp/consul_template_{{ consul_template.version }}_linux_amd64.zip -d /tmp
23-
- watch:
23+
- onchanges:
2424
- file: consul-template-download
2525
2626
consul-template-install:

consul/install.sls

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ consul-download:
5757
- unless: test -f /usr/local/bin/consul-{{ consul.version }}
5858
5959
consul-extract:
60-
cmd.wait:
60+
cmd.run:
6161
- name: unzip /tmp/consul_{{ consul.version }}_linux_{{ consul.arch }}.zip -d /tmp
62-
- watch:
62+
- onchanges:
6363
- file: consul-download
6464
6565
consul-install:

0 commit comments

Comments
 (0)