Skip to content

Commit 7cc688c

Browse files
committed
refactor(salt-lint): fix violations
``` [213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait apt/dist_upgrade.sls:2 cmd.wait: [213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait apt/update.sls:2 cmd.wait: [213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait apt/upgrade.sls:2 cmd.wait: [214] SLS file with a period in the name (besides the suffix period) can not be referenced test/salt/pillar/preferences.pillar.sls:1 [214] SLS file with a period in the name (besides the suffix period) can not be referenced test/salt/pillar/repositories.pillar.sls:1 [214] SLS file with a period in the name (besides the suffix period) can not be referenced test/salt/pillar/unattended.pillar.sls:1 ```
1 parent 37ca1fa commit 7cc688c

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

apt/dist_upgrade.sls

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apt-get -y dist-upgrade:
2-
cmd.wait:
3-
- watch:
2+
cmd.run:
3+
- onchanges:
44
- file: /etc/apt/sources.list
55
- file: /etc/apt/sources.list.d

apt/update.sls

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apt-get -y update:
2-
cmd.wait:
3-
- watch:
2+
cmd.run:
3+
- onchanges:
44
- file: /etc/apt/sources.list
55
- file: /etc/apt/sources.list.d

apt/upgrade.sls

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apt-get -y upgrade:
2-
cmd.wait:
3-
- watch:
2+
cmd.run:
3+
- onchanges:
44
- file: /etc/apt/sources.list
55
- file: /etc/apt/sources.list.d

kitchen.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ suites:
144144
'*':
145145
- apt
146146
pillars_from_files:
147-
apt.sls: test/salt/pillar/repositories.pillar.sls
147+
apt.sls: test/salt/pillar/repositories.sls
148148
verifier:
149149
inspec_tests:
150150
- path: test/integration/repositories
@@ -161,7 +161,7 @@ suites:
161161
'*':
162162
- apt
163163
pillars_from_files:
164-
apt.sls: test/salt/pillar/preferences.pillar.sls
164+
apt.sls: test/salt/pillar/preferences.sls
165165
verifier:
166166
inspec_tests:
167167
- path: test/integration/preferences
@@ -178,7 +178,7 @@ suites:
178178
'*':
179179
- apt
180180
pillars_from_files:
181-
apt.sls: test/salt/pillar/unattended.pillar.sls
181+
apt.sls: test/salt/pillar/unattended.sls
182182
verifier:
183183
inspec_tests:
184184
- path: test/integration/unattended

0 commit comments

Comments
 (0)