Browse Source

refactor(salt-lint): fix violation

```
[213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait
users/init.sls:498
  cmd.wait:
```
tags/v0.48.7
Imran Iqbal 2 years ago
parent
commit
696139a841
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      users/init.sls

+ 2
- 2
users/init.sls View File

- require: - require:
- file: users_sudoer-defaults - file: users_sudoer-defaults
- file: users_sudoer-{{ name }} - file: users_sudoer-{{ name }}
cmd.wait:
cmd.run:
- name: visudo -cf {{ users.sudoers_dir }}/{{ sudoers_d_filename }} || ( rm -rvf {{ users.sudoers_dir }}/{{ sudoers_d_filename }}; exit 1 ) - name: visudo -cf {{ users.sudoers_dir }}/{{ sudoers_d_filename }} || ( rm -rvf {{ users.sudoers_dir }}/{{ sudoers_d_filename }}; exit 1 )
- watch:
- onchanges:
- file: {{ users.sudoers_dir }}/{{ sudoers_d_filename }} - file: {{ users.sudoers_dir }}/{{ sudoers_d_filename }}
{% endif %} {% endif %}
{% else %} {% else %}

Loading…
Cancel
Save