You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
files.line, crontab.crontab: actually delete lines when present=False
* operations/utils/files.py:
Add sed_delete().
Factor out common code from sed_replace and sed_delete into _sed_command().
Add _set_delete_builder() and _sed_replace_builder() to build the actual sed
expression.
* operations/files.py line(): use sed_delete().
* operations/crontab.py crontab(): use sed_delete().
* tests/operations/apt.repo/remove.json,
tests/operations/bsdinit.service/disabled.json,
tests/operations/crontab.crontab.remove.json: adjust expected commands.
0 commit comments