Skip to content

Commit

Permalink
fix wrong element spec for rules param in aws_s3_cors (#408)
Browse files Browse the repository at this point in the history
* #404 fix wrong element spec for rules param

* #404 documentation fix

Co-authored-by: Markus Bergholz <[email protected]>
  • Loading branch information
markuman and Markus Bergholz authored Feb 11, 2021
1 parent 701153a commit b36131b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- aws_s3_cors - fix element type for rules parameter. (https://github.com/ansible-collections/community.aws/pull/408).
4 changes: 2 additions & 2 deletions plugins/modules/aws_s3_cors.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
description:
- Cors rules to put on the s3 bucket
type: list
elements: str
elements: dict
state:
description:
- Create or remove cors on the s3 bucket
Expand Down Expand Up @@ -147,7 +147,7 @@ def main():

argument_spec = dict(
name=dict(required=True, type='str'),
rules=dict(type='list', elements='str'),
rules=dict(type='list', elements='dict'),
state=dict(type='str', choices=['present', 'absent'], required=True)
)

Expand Down

0 comments on commit b36131b

Please sign in to comment.