cron: adjust deprecated version (#52531)

* add changelog fragment

* fixed freudian slip in changelog
This commit is contained in:
René Moser 2019-02-19 07:26:34 +01:00 committed by GitHub
parent fbf4e32b43
commit d99728d9e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- "Added missing deprecation warning for param 'reboot' and use without param 'name' to the cron module."

View file

@ -613,12 +613,12 @@ def main():
if not name:
module.deprecate(
msg="The 'name' parameter will be required in future releases.",
version='2.10'
version='2.12'
)
if reboot:
module.deprecate(
msg="The 'reboot' parameter will be removed in future releases. Use 'special_time' option instead.",
version='2.10'
version='2.12'
)
if module._diff: