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
django/apps/poll/multi-host/vhost.sls:44
  cmd.wait:
[213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait
django/apps/poll/single-host/vhost.sls:44
  cmd.wait:
```
  • Loading branch information
myii committed Feb 12, 2022
1 parent 6ebf288 commit f73f9ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions django/apps/poll/multi-host/vhost.sls
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ a2dissite {{ default_site }}:
- pkg: apache
service apache2 reload:
cmd.wait:
- watch:
cmd.run:
- onchanges:
- cmd: a2ensite poll-vhost.conf
- cmd: a2dissite {{ default_site }}
{% elif grains.os_family == 'RedHat' %}
Expand Down
4 changes: 2 additions & 2 deletions django/apps/poll/single-host/vhost.sls
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ a2dissite {{ default_site }}:
- pkg: apache
service apache2 reload:
cmd.wait:
- watch:
cmd.run:
- onchanges:
- cmd: a2ensite poll-vhost.conf
- cmd: a2dissite {{ default_site }}
{% elif grains.os_family == 'RedHat' %}
Expand Down

0 comments on commit f73f9ca

Please sign in to comment.