Adds deprecation warnings for both 'name', and 'reboot' option (although not related to this change, it has been deprecated for quite a while)
This commit is contained in:
parent
f697e264cc
commit
523cb8b5a4
1 changed files with 12 additions and 0 deletions
|
@ -38,6 +38,7 @@ options:
|
||||||
- Description of a crontab entry or, if env is set, the name of environment variable.
|
- Description of a crontab entry or, if env is set, the name of environment variable.
|
||||||
Required if state=absent. Note that if name is not set and state=present, then a
|
Required if state=absent. Note that if name is not set and state=present, then a
|
||||||
new crontab entry will always be created, regardless of existing ones.
|
new crontab entry will always be created, regardless of existing ones.
|
||||||
|
This parameter will always be required in future releases.
|
||||||
user:
|
user:
|
||||||
description:
|
description:
|
||||||
- The specific user whose crontab should be modified.
|
- The specific user whose crontab should be modified.
|
||||||
|
@ -609,6 +610,17 @@ def main():
|
||||||
|
|
||||||
module.debug('cron instantiated - name: "%s"' % name)
|
module.debug('cron instantiated - name: "%s"' % name)
|
||||||
|
|
||||||
|
if not name:
|
||||||
|
module.deprecate(
|
||||||
|
msg="The 'name' parameter will be required in future releases.",
|
||||||
|
version='2.10'
|
||||||
|
)
|
||||||
|
if reboot:
|
||||||
|
module.deprecate(
|
||||||
|
msg="The 'reboot' parameter will be removed in future releases. Use 'special_time' option instead.",
|
||||||
|
version='2.10'
|
||||||
|
)
|
||||||
|
|
||||||
if module._diff:
|
if module._diff:
|
||||||
diff = dict()
|
diff = dict()
|
||||||
diff['before'] = crontab.existing
|
diff['before'] = crontab.existing
|
||||||
|
|
Loading…
Add table
Reference in a new issue