From 19416a1343a8add806be244ba6beeee26a02cba5 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 18 Oct 2018 14:30:22 -0500 Subject: [PATCH] Fix versions in module.deprecate call to align with module deprecation. Fixes #45035 #45034 (#47211) --- lib/ansible/modules/network/panos/_panos_nat_policy.py | 2 +- lib/ansible/modules/network/panos/_panos_security_policy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/panos/_panos_nat_policy.py b/lib/ansible/modules/network/panos/_panos_nat_policy.py index e26201d10c..a29f3a99b2 100644 --- a/lib/ansible/modules/network/panos/_panos_nat_policy.py +++ b/lib/ansible/modules/network/panos/_panos_nat_policy.py @@ -272,7 +272,7 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=False) if module._name == 'panos_nat_policy': - module.deprecate("The 'panos_nat_policy' module is being renamed 'panos_nat_rule'", version=2.8) + module.deprecate("The 'panos_nat_policy' module is being renamed 'panos_nat_rule'", version=2.9) if not HAS_LIB: module.fail_json(msg='pan-python is required for this module') diff --git a/lib/ansible/modules/network/panos/_panos_security_policy.py b/lib/ansible/modules/network/panos/_panos_security_policy.py index 13799fbc18..bf6718be40 100644 --- a/lib/ansible/modules/network/panos/_panos_security_policy.py +++ b/lib/ansible/modules/network/panos/_panos_security_policy.py @@ -414,7 +414,7 @@ def main(): required_one_of=[['api_key', 'password']]) if module._name == 'panos_security_policy': - module.deprecate("The 'panos_security_policy' module is being renamed 'panos_security_rule'", version=2.8) + module.deprecate("The 'panos_security_policy' module is being renamed 'panos_security_rule'", version=2.9) if not HAS_LIB: module.fail_json(msg='Missing required pan-python and pandevice modules.')