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
redis/common.sls:33
  cmd.wait:
[213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait
redis/common.sls:41
  cmd.wait:
[213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait
redis/common.sls:50
  cmd.wait:
```
  • Loading branch information
myii committed Feb 12, 2022
1 parent 45e625e commit eef0cf1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions redis/common.sls
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,28 @@ get-redis:
- makedirs: True
- require:
- pkg: redis-dependencies
cmd.wait:
cmd.run:
- cwd: {{ root }}
- names:
- tar -zxvf {{ root }}/redis-{{ version }}.tar.gz -C {{ root }} >/dev/null
- watch:
- onchanges:
- file: get-redis
make-and-install-redis:
cmd.wait:
cmd.run:
- cwd: {{ root }}/redis-{{ version }}
- names:
- make >/dev/null 2>&1
- make install >/dev/null 2>&1
- watch:
- onchanges:
- cmd: get-redis
install-redis-service:
cmd.wait:
cmd.run:
- cwd: {{ root }}/redis-{{ version }}
- names:
- echo -n | utils/install_server.sh
- watch:
- onchanges:
- cmd: get-redis
- cmd: make-and-install-redis
- require:
Expand Down

0 comments on commit eef0cf1

Please sign in to comment.