Deprecated version should be an explicit version number (#44593)

This commit is contained in:
Matt Martz 2018-08-23 14:45:39 -05:00 committed by GitHub
parent 1fd6821db0
commit 2787bda0fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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':

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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']