mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
cloudfront_distribution: fix restrictions (#37476)
This commit is contained in:
parent
68f81a6799
commit
63a8ae94a7
2 changed files with 18 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue