Fixing a typo in the boto_cloudfront.

This commit is contained in:
Gareth J. Greenaway 2018-10-16 11:01:35 -07:00
parent 4c4bb5a489
commit b5b90a1608
No known key found for this signature in database
GPG Key ID: 10B62F8A7CAD7A41

View File

@ -400,9 +400,9 @@ def update_distribution(
keyid=keyid,
profile=profile
)
if 'error' in distribution_result:
return distribution_result
dist_with_tags = distribution_result['result']
if 'error' in distribution_ret:
return distribution_ret
dist_with_tags = distribution_ret['result']
current_distribution = dist_with_tags['distribution']
current_config = current_distribution['DistributionConfig']