From d99728d9e6f171f8e0dd902b9d832f7e125e2fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Tue, 19 Feb 2019 07:26:34 +0100 Subject: [PATCH] cron: adjust deprecated version (#52531) * add changelog fragment * fixed freudian slip in changelog --- .../fragments/52322-cron_fix_missing_deprecation_warn.yaml | 2 ++ lib/ansible/modules/system/cron.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/52322-cron_fix_missing_deprecation_warn.yaml diff --git a/changelogs/fragments/52322-cron_fix_missing_deprecation_warn.yaml b/changelogs/fragments/52322-cron_fix_missing_deprecation_warn.yaml new file mode 100644 index 00000000000..a8a52f6a801 --- /dev/null +++ b/changelogs/fragments/52322-cron_fix_missing_deprecation_warn.yaml @@ -0,0 +1,2 @@ +minor_changes: +- "Added missing deprecation warning for param 'reboot' and use without param 'name' to the cron module." diff --git a/lib/ansible/modules/system/cron.py b/lib/ansible/modules/system/cron.py index cabccc94a63..7a31648d158 100644 --- a/lib/ansible/modules/system/cron.py +++ b/lib/ansible/modules/system/cron.py @@ -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: