mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 00:33:09 +00:00
@@ -727,8 +727,9 @@ def main():
|
||||
changed = True
|
||||
|
||||
# no changes to env/job, but existing crontab needs a terminating newline
|
||||
if not changed and not crontab.existing.endswith(('\r', '\n')):
|
||||
changed = True
|
||||
if not changed:
|
||||
if not (crontab.existing.endswith('\r') or crontab.existing.endswith('\n')):
|
||||
changed = True
|
||||
|
||||
res_args = dict(
|
||||
jobs = crontab.get_jobnames(),
|
||||
|
||||
Reference in New Issue
Block a user