From c195645575407663c34426e680497f25ca703aad Mon Sep 17 00:00:00 2001 From: zingyb <47951258+zingyb@users.noreply.github.com> Date: Mon, 29 Apr 2019 14:36:50 -0600 Subject: [PATCH] Remove illegal basic provisioning example (#55892) The bare minimum example in the docs (i.e. only supplying name, state, and cluster) results in the error `state is present but all of the following are missing: task_definition, desired_count`. --- lib/ansible/modules/cloud/amazon/ecs_service.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ecs_service.py b/lib/ansible/modules/cloud/amazon/ecs_service.py index 630d2b41e70..0cd23b992ec 100644 --- a/lib/ansible/modules/cloud/amazon/ecs_service.py +++ b/lib/ansible/modules/cloud/amazon/ecs_service.py @@ -160,6 +160,8 @@ extends_documentation_fragment: EXAMPLES = ''' # Note: These examples do not set authentication details, see the AWS Guide for details. + +# Basic provisioning example - ecs_service: state: present name: console-test-service @@ -167,12 +169,6 @@ EXAMPLES = ''' task_definition: 'new_cluster-task:1' desired_count: 0 -# Basic provisioning example -- ecs_service: - name: default - state: present - cluster: new_cluster - - name: create ECS service on VPC network ecs_service: state: present