Skip to content

Commit

Permalink
fix wrong element type for containers in ecs_taskdefinition (ansible-…
Browse files Browse the repository at this point in the history
…collections#284)

* ansible-collections#264 wrong element type for parameter
  • Loading branch information
markuman authored and danielcotton committed Nov 23, 2021
1 parent c051834 commit 0282164
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:
- ecs_taskdefinition - fixes elements type for ``containers`` parameter (https://github.com/ansible-collections/community.aws/issues/264).
4 changes: 2 additions & 2 deletions plugins/modules/ecs_taskdefinition.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
- A list of containers definitions.
required: False
type: list
elements: str
elements: dict
network_mode:
description:
- The Docker networking mode to use for the containers in the task.
Expand Down Expand Up @@ -321,7 +321,7 @@ def main():
family=dict(required=False, type='str'),
revision=dict(required=False, type='int'),
force_create=dict(required=False, default=False, type='bool'),
containers=dict(required=False, type='list', elements='str'),
containers=dict(required=False, type='list', elements='dict'),
network_mode=dict(required=False, default='bridge', choices=['default', 'bridge', 'host', 'none', 'awsvpc'], type='str'),
task_role_arn=dict(required=False, default='', type='str'),
execution_role_arn=dict(required=False, default='', type='str'),
Expand Down

0 comments on commit 0282164

Please sign in to comment.