Fix versions in module.deprecate call to align with module deprecation. Fixes #45035 #45034 (#47211)

This commit is contained in:
Matt Martz 2018-10-18 14:30:22 -05:00 committed by ansibot
parent 7844a40046
commit 19416a1343
2 changed files with 2 additions and 2 deletions

View file

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

View file

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