mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
cloudfront_distribution: fix restrictions (#37476)
This commit is contained in:
@@ -1691,7 +1691,7 @@ class CloudFrontValidationManager(object):
|
||||
rest not in geo_restriction_items])
|
||||
valid_restrictions = ansible_list_to_cloudfront_list(geo_restriction_items)
|
||||
valid_restrictions['restriction_type'] = geo_restriction.get('restriction_type')
|
||||
return valid_restrictions
|
||||
return {'geo_restriction': valid_restrictions}
|
||||
except Exception as e:
|
||||
self.module.fail_json_aws(e, msg="Error validating restrictions")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user