mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
dddf810a19
commit
580c74140a
1 changed files with 3 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue