diff --git a/lib/ansible/modules/cloud/amazon/cloudfront_distribution.py b/lib/ansible/modules/cloud/amazon/cloudfront_distribution.py index 449d1a556c..63145bede2 100644 --- a/lib/ansible/modules/cloud/amazon/cloudfront_distribution.py +++ b/lib/ansible/modules/cloud/amazon/cloudfront_distribution.py @@ -1813,7 +1813,7 @@ class CloudFrontValidationManager(object): def wait_until_processed(self, client, wait_timeout, distribution_id, caller_reference): if distribution_id is None: - distribution_id = self.validate_distribution_id_from_caller_reference(caller_reference=caller_reference) + distribution_id = self.validate_distribution_from_caller_reference(caller_reference=caller_reference)['Id'] try: waiter = client.get_waiter('distribution_deployed')