community.general/lib/ansible/modules
Evgeni Golov 61579aebb2 cron: don't force changed=True when old crontab was empty
The cron module forces changed=True when there was no real change,
but the original crontab did not contain a final newline, which is
mandatory.

When the user has no crontab or the user does not exist at all,
crontab -l exits with 1 and the cron module correctly interprets
this as "no crontab" and stores the old crontab as "".

However this triggers changed=True, even if we're not going to
change anything, e.g. when removing a crontab entry from a user
who has no crontabs at all.

Let's special-case the fact that the old crontab is empty and not
force changed=True in that case.
2017-03-28 07:45:13 -07:00
..
cloud Fix dynamodb pep8 issues (#23032) 2017-03-28 15:11:39 +02:00
clustering E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
commands let user control "auto-de-vault" (#22739) 2017-03-24 15:39:25 -04:00
crypto New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
database E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
files let user control "auto-de-vault" (#22739) 2017-03-24 15:39:25 -04:00
identity New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
inventory New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
messaging E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
monitoring E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
network Introspect flag to use on 'show run' when using defaults in ios_config (#22903) 2017-03-28 10:20:52 +02:00
notification E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
packaging Make yum's state=list obey disablerepo and enablerepo 2017-03-23 12:10:59 -07:00
remote_management New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
source_control Fixes bug https://github.com/ansible/ansible/issues/22455 - Git reset… (#22502) 2017-03-28 08:41:25 -04:00
storage Update netapp_e_amg_sync.py (#22693) 2017-03-28 07:19:05 -04:00
system cron: don't force changed=True when old crontab was empty 2017-03-28 07:45:13 -07:00
utilities E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
web_infrastructure E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
windows force Windows to always use preamble-free UTF8 input encoding (#22934) 2017-03-24 00:02:39 -07:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00