diff --git a/changelogs/fragments/67188-fix-aws_az_info-deprecation.yaml b/changelogs/fragments/67188-fix-aws_az_info-deprecation.yaml new file mode 100644 index 00000000000..43cbf602d37 --- /dev/null +++ b/changelogs/fragments/67188-fix-aws_az_info-deprecation.yaml @@ -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' diff --git a/lib/ansible/modules/cloud/amazon/aws_az_info.py b/lib/ansible/modules/cloud/amazon/aws_az_info.py index 87554dcfba7..78ffb38a914 100644 --- a/lib/ansible/modules/cloud/amazon/aws_az_info.py +++ b/lib/ansible/modules/cloud/amazon/aws_az_info.py @@ -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')