Backports/2.9/67188 aws_az_info: Fix rename deprecaction warning (#67208)

* aws_az_info: Fix rename deprecaction warning (#67188)

* Add changelog
pull/67297/head
Mark Chappell 5 years ago committed by GitHub
parent a9c3bfa96c
commit 57fbb0e571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
deprecated_features:
- 'aws_az_info (aws_az_facts) - Fixed deprecation warning so that it triggers when run as aws_az_facts. Bumped removal version to 2.14'

@ -88,8 +88,8 @@ def main():
)
module = AnsibleModule(argument_spec=argument_spec)
if module._name == 'aws_acm_facts':
module.deprecate("The 'aws_az_facts' module has been renamed to 'aws_az_info'", version='2.13')
if module._name == 'aws_az_facts':
module.deprecate("The 'aws_az_facts' module has been renamed to 'aws_az_info'", version='2.14')
if not HAS_BOTO3:
module.fail_json(msg='boto3 required for this module')

Loading…
Cancel
Save