0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 00:48:22 +01:00

refactor(salt-lint): fix violation

```
[213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait
users/init.sls:498
  cmd.wait:
```
This commit is contained in:
Imran Iqbal 2022-02-11 23:23:31 +00:00
parent a4fb2c6380
commit 696139a841
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819

View File

@ -495,9 +495,9 @@ users_{{ users.sudoers_dir }}/{{ name }}:
- 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 %}