From 2787bda0fa730c1697655592402bbad0e4424a71 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 23 Aug 2018 14:45:39 -0500 Subject: [PATCH] Deprecated version should be an explicit version number (#44593) --- lib/ansible/modules/network/iosxr/iosxr_banner.py | 2 +- lib/ansible/modules/network/iosxr/iosxr_interface.py | 2 +- lib/ansible/modules/network/iosxr/iosxr_logging.py | 2 +- lib/ansible/modules/network/iosxr/iosxr_system.py | 2 +- lib/ansible/modules/network/iosxr/iosxr_user.py | 2 +- lib/ansible/modules/network/netconf/netconf_config.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/network/iosxr/iosxr_banner.py b/lib/ansible/modules/network/iosxr/iosxr_banner.py index be6e45afc4a..0183d71999c 100644 --- a/lib/ansible/modules/network/iosxr/iosxr_banner.py +++ b/lib/ansible/modules/network/iosxr/iosxr_banner.py @@ -235,7 +235,7 @@ def main(): config_object = None if is_cliconf(module): module.deprecate(msg="cli support for 'iosxr_banner' is deprecated. Use transport netconf instead", - version="4 releases from v2.5") + version="2.9") config_object = CliConfiguration(module) elif is_netconf(module): config_object = NCConfiguration(module) diff --git a/lib/ansible/modules/network/iosxr/iosxr_interface.py b/lib/ansible/modules/network/iosxr/iosxr_interface.py index d41bf27abdb..b800b9f602d 100644 --- a/lib/ansible/modules/network/iosxr/iosxr_interface.py +++ b/lib/ansible/modules/network/iosxr/iosxr_interface.py @@ -634,7 +634,7 @@ def main(): config_object = None if is_cliconf(module): module.deprecate("cli support for 'iosxr_interface' is deprecated. Use transport netconf instead", - version='4 releases from v2.5') + version='2.9') config_object = CliConfiguration(module) elif is_netconf(module): if module.params['active'] == 'preconfigure': diff --git a/lib/ansible/modules/network/iosxr/iosxr_logging.py b/lib/ansible/modules/network/iosxr/iosxr_logging.py index 43540f5b986..793ab8c9de4 100644 --- a/lib/ansible/modules/network/iosxr/iosxr_logging.py +++ b/lib/ansible/modules/network/iosxr/iosxr_logging.py @@ -712,7 +712,7 @@ def main(): config_object = None if is_cliconf(module): module.deprecate(msg="cli support for 'iosxr_logging' is deprecated. Use transport netconf instead", - version="4 releases from v2.5") + version="2.9") config_object = CliConfiguration(module) elif is_netconf(module): config_object = NCConfiguration(module) diff --git a/lib/ansible/modules/network/iosxr/iosxr_system.py b/lib/ansible/modules/network/iosxr/iosxr_system.py index 602d60edd32..80072f15ec4 100644 --- a/lib/ansible/modules/network/iosxr/iosxr_system.py +++ b/lib/ansible/modules/network/iosxr/iosxr_system.py @@ -574,7 +574,7 @@ def main(): config_object = None if is_cliconf(module): module.deprecate(msg="cli support for 'iosxr_system' is deprecated. Use transport netconf instead", - version="4 releases from v2.5") + version="2.9") config_object = CliConfiguration(module) elif is_netconf(module): config_object = NCConfiguration(module) diff --git a/lib/ansible/modules/network/iosxr/iosxr_user.py b/lib/ansible/modules/network/iosxr/iosxr_user.py index 1eb69a35bc8..30205f4df5b 100644 --- a/lib/ansible/modules/network/iosxr/iosxr_user.py +++ b/lib/ansible/modules/network/iosxr/iosxr_user.py @@ -689,7 +689,7 @@ def main(): config_object = None if is_cliconf(module): module.deprecate(msg="cli support for 'iosxr_user' is deprecated. Use transport netconf instead", - version="4 releases from v2.5") + version="2.9") config_object = CliConfiguration(module, result) elif is_netconf(module): config_object = NCConfiguration(module, result) diff --git a/lib/ansible/modules/network/netconf/netconf_config.py b/lib/ansible/modules/network/netconf/netconf_config.py index 35109c0fa60..36c6fbb008b 100644 --- a/lib/ansible/modules/network/netconf/netconf_config.py +++ b/lib/ansible/modules/network/netconf/netconf_config.py @@ -263,7 +263,7 @@ def main(): if module.params['src']: module.deprecate(msg="argument 'src' has been deprecated. Use file lookup plugin instead to read file contents.", - version="4 releases from v2.7") + version="2.11") config = module.params['content'] or module.params['src'] target = module.params['target']