From c0518347a010bba95ab7a20cce9130a3f47fad37 Mon Sep 17 00:00:00 2001 From: Markus Bergholz Date: Thu, 12 Nov 2020 12:18:50 +0100 Subject: [PATCH] fix element type for load_balancers in ecs_service (#286) * #265 fix element type for load_balancers in ecs_service --- changelogs/fragments/265-fix-element-type-ecs_service.yml | 2 ++ plugins/modules/ecs_service.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/265-fix-element-type-ecs_service.yml diff --git a/changelogs/fragments/265-fix-element-type-ecs_service.yml b/changelogs/fragments/265-fix-element-type-ecs_service.yml new file mode 100644 index 00000000000..61bbd20a8ce --- /dev/null +++ b/changelogs/fragments/265-fix-element-type-ecs_service.yml @@ -0,0 +1,2 @@ +bugfixes: + - ecs_service - fix element type for ``load_balancers`` parameter (https://github.com/ansible-collections/community.aws/issues/265). diff --git a/plugins/modules/ecs_service.py b/plugins/modules/ecs_service.py index 462f60cb946..499fa0d4711 100644 --- a/plugins/modules/ecs_service.py +++ b/plugins/modules/ecs_service.py @@ -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. @@ -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'),