[aws] cloudfront_distribution - fix method name, backport/2.7/45498 (#45512)

* [AWS] cloudfront_distribution - fix method name from 'validate_distribution_id_from_caller_reference' to 'validate_distribution_from_caller_reference' and set distribution_id to the distribution's key 'Id' (#45498)

(cherry picked from commit e5269c047c)

* changelog
This commit is contained in:
Sloane Hertel 2018-09-11 17:34:35 -04:00 committed by Toshio Kuratomi
parent d9d1c40932
commit 4c080f649b
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
bugfixes:
- cloudfront_distribution - replace call to nonexistent method 'validate_distribution_id_from_caller_reference'
with 'validate_distribution_from_caller_reference' and set the distribution_id variable to the distribution's
'Id' key.

View file

@ -1813,7 +1813,7 @@ class CloudFrontValidationManager(object):
def wait_until_processed(self, client, wait_timeout, distribution_id, caller_reference): def wait_until_processed(self, client, wait_timeout, distribution_id, caller_reference):
if distribution_id is None: 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: try:
waiter = client.get_waiter('distribution_deployed') waiter = client.get_waiter('distribution_deployed')