Skip to content

Commit

Permalink
fix wrong element spec for rules param in aws_s3_cors (ansible-collec…
Browse files Browse the repository at this point in the history
…tions#408)

* ansible-collections#404 fix wrong element spec for rules param

* ansible-collections#404 documentation fix

Co-authored-by: Markus Bergholz <[email protected]>
  • Loading branch information
markuman and Markus Bergholz authored Feb 11, 2021
1 parent c326d02 commit ba3bdcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 ba3bdcb

Please sign in to comment.