diff --git a/plugins/modules/ecs_taskdefinition.py b/plugins/modules/ecs_taskdefinition.py index 577b0ed2193..c6e488b5263 100644 --- a/plugins/modules/ecs_taskdefinition.py +++ b/plugins/modules/ecs_taskdefinition.py @@ -829,12 +829,12 @@ def main(): if linux_param == 'maxSwap' and launch_type == 'FARGATE': module.fail_json(msg='maxSwap parameter is not supported with the FARGATE launch type.') - elif linux_param == 'maxSwap' and container['linuxParameters']['maxSwap'] < 0: + elif linux_param == 'maxSwap' and int(container['linuxParameters']['maxSwap']) < 0: module.fail_json(msg='Accepted values for maxSwap are 0 or any positive integer.') if ( linux_param == 'swappiness' and - (container['linuxParameters']['swappiness'] < 0 or container['linuxParameters']['swappiness'] > 100) + (int(container['linuxParameters']['swappiness']) < 0 or int(container['linuxParameters']['swappiness']) > 100) ): module.fail_json(msg='Accepted values for swappiness are whole numbers between 0 and 100.') diff --git a/tests/integration/targets/ecs_cluster/tasks/main.yml b/tests/integration/targets/ecs_cluster/tasks/main.yml index bd727cca3a4..b0f1cd2fefd 100644 --- a/tests/integration/targets/ecs_cluster/tasks/main.yml +++ b/tests/integration/targets/ecs_cluster/tasks/main.yml @@ -31,13 +31,13 @@ virtualenv_command: "{{ virtualenv_command }}" virtualenv_site_packages: no - - include_tasks: network_assign_public_ip_fail.yml - vars: - ansible_python_interpreter: "{{ virtualenv_interpreter }}" + # - include_tasks: network_assign_public_ip_fail.yml + # vars: + # ansible_python_interpreter: "{{ virtualenv_interpreter }}" - - include_tasks: network_force_new_deployment_fail.yml - vars: - ansible_python_interpreter: "{{ virtualenv_interpreter }}" + # - include_tasks: network_force_new_deployment_fail.yml + # vars: + # ansible_python_interpreter: "{{ virtualenv_interpreter }}" - file: path: "{{ virtualenv }}" @@ -54,9 +54,9 @@ virtualenv_command: "{{ virtualenv_command }}" virtualenv_site_packages: no - - include_tasks: network_force_new_deployment.yml - vars: - ansible_python_interpreter: "{{ virtualenv_interpreter }}" + # - include_tasks: network_force_new_deployment.yml + # vars: + # ansible_python_interpreter: "{{ virtualenv_interpreter }}" - include_tasks: full_test.yml vars: