mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Improve augeas example
As pointed out by #65352, the check given here is not safe.
This commit is contained in:
parent
1640f04763
commit
6b7377799d
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ def change(name, context=None, changes=None, lens=None, load_path=None, **kwargs
|
|||
- set "service-name[. = 'zabbix-agent']/protocol" tcp
|
||||
- set "service-name[. = 'zabbix-agent']/#comment" "Zabbix Agent service"
|
||||
- rm "service-name[. = 'im-obsolete']"
|
||||
- unless: grep "zabbix-agent" /etc/services
|
||||
- unless: grep '^zabbix-agent\\s' /etc/services
|
||||
|
||||
.. warning::
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue