1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix for python 2.4 compatibility (#5693)

Fixes #5692
This commit is contained in:
Evan Kaufman 2016-12-02 00:49:48 -08:00 committed by Matt Clay
parent dddf810a19
commit 580c74140a

View file

@ -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(),