diff --git a/salt/modules/boto_cloudfront.py b/salt/modules/boto_cloudfront.py index 6d00ace956..62018d86ba 100644 --- a/salt/modules/boto_cloudfront.py +++ b/salt/modules/boto_cloudfront.py @@ -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']