Improve augeas example

As pointed out by #65352, the check given here is not safe.
This commit is contained in:
James Howe 2023-10-06 14:31:21 +01:00 committed by Daniel Wozniak
parent 1640f04763
commit 6b7377799d

View file

@ -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::