Skip to content

Commit

Permalink
refactor(salt-lint): fix violations
Browse files Browse the repository at this point in the history
```
[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
```
  • Loading branch information
myii committed Feb 12, 2022
1 parent 37ca1fa commit 7cc688c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apt/dist_upgrade.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apt-get -y dist-upgrade:
cmd.wait:
- watch:
cmd.run:
- onchanges:
- file: /etc/apt/sources.list
- file: /etc/apt/sources.list.d
4 changes: 2 additions & 2 deletions apt/update.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apt-get -y update:
cmd.wait:
- watch:
cmd.run:
- onchanges:
- file: /etc/apt/sources.list
- file: /etc/apt/sources.list.d
4 changes: 2 additions & 2 deletions apt/upgrade.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apt-get -y upgrade:
cmd.wait:
- watch:
cmd.run:
- onchanges:
- file: /etc/apt/sources.list
- file: /etc/apt/sources.list.d
6 changes: 3 additions & 3 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ suites:
'*':
- apt
pillars_from_files:
apt.sls: test/salt/pillar/repositories.pillar.sls
apt.sls: test/salt/pillar/repositories.sls
verifier:
inspec_tests:
- path: test/integration/repositories
Expand All @@ -161,7 +161,7 @@ suites:
'*':
- apt
pillars_from_files:
apt.sls: test/salt/pillar/preferences.pillar.sls
apt.sls: test/salt/pillar/preferences.sls
verifier:
inspec_tests:
- path: test/integration/preferences
Expand All @@ -178,7 +178,7 @@ suites:
'*':
- apt
pillars_from_files:
apt.sls: test/salt/pillar/unattended.pillar.sls
apt.sls: test/salt/pillar/unattended.sls
verifier:
inspec_tests:
- path: test/integration/unattended
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7cc688c

Please sign in to comment.