Skip to content

Commit

Permalink
fix element type for load_balancers in ecs_service (ansible-collectio…
Browse files Browse the repository at this point in the history
…ns#286)

* ansible-collections#265 fix element type for load_balancers in ecs_service
  • Loading branch information
markuman authored and danielcotton committed Nov 23, 2021
1 parent 4172187 commit c051834
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/265-fix-element-type-ecs_service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- ecs_service - fix element type for ``load_balancers`` parameter (https://github.com/ansible-collections/community.aws/issues/265).
4 changes: 2 additions & 2 deletions plugins/modules/ecs_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
- The list of ELBs defined for this service.
required: false
type: list
elements: str
elements: dict
desired_count:
description:
- The count of how many instances of the service.
Expand Down Expand Up @@ -648,7 +648,7 @@ def main():
name=dict(required=True, type='str'),
cluster=dict(required=False, type='str'),
task_definition=dict(required=False, type='str'),
load_balancers=dict(required=False, default=[], type='list', elements='str'),
load_balancers=dict(required=False, default=[], type='list', elements='dict'),
desired_count=dict(required=False, type='int'),
client_token=dict(required=False, default='', type='str'),
role=dict(required=False, default='', type='str'),
Expand Down

0 comments on commit c051834

Please sign in to comment.