From c98db451aca383e447929232a2b8fb30fcf823b3 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 11 Jan 2016 13:23:04 -0800 Subject: [PATCH] Disable RETURNS because the approved module doesn't have a RETURNS that is buildable --- lib/ansible/modules/extras/cloud/amazon/ecs_service.py | 9 ++++++--- .../modules/extras/cloud/amazon/ecs_service_facts.py | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ecs_service.py b/lib/ansible/modules/extras/cloud/amazon/ecs_service.py index a683602faf..24904e6e67 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ecs_service.py +++ b/lib/ansible/modules/extras/cloud/amazon/ecs_service.py @@ -25,7 +25,7 @@ notes: - for details of the parameters and returns see U(http://boto3.readthedocs.org/en/latest/reference/services/ecs.html) dependencies: - An IAM role must have been created -version_added: "2.0" +version_added: "2.1" author: Mark Chance (@java1guy) options: state: @@ -95,7 +95,11 @@ EXAMPLES = ''' state: absent cluster: new_cluster ''' -RETURN = ''' + +# Disabled the RETURN as it was breaking docs building. Someone needs to fix +# this +RETURN = ''' ''' +''' # Create service service: On create service, it returns the new values; on delete service, it returns the values for the service being deleted. clusterArn: The Amazon Resource Name (ARN) of the of the cluster that hosts the service. @@ -114,7 +118,6 @@ service: On create service, it returns the new values; on delete service, it ret ansible_facts: When deleting a service, the values described above for the service prior to its deletion are returned. ''' try: - import json import boto import botocore HAS_BOTO = True diff --git a/lib/ansible/modules/extras/cloud/amazon/ecs_service_facts.py b/lib/ansible/modules/extras/cloud/amazon/ecs_service_facts.py index d8287162c9..126ef9c69c 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ecs_service_facts.py +++ b/lib/ansible/modules/extras/cloud/amazon/ecs_service_facts.py @@ -22,7 +22,7 @@ notes: - for details of the parameters and returns see U(http://boto3.readthedocs.org/en/latest/reference/services/ecs.html) description: - Lists or describes services in ecs. -version_added: "2.0" +version_added: "2.1" author: Mark Chance (@java1guy) options: details: @@ -55,7 +55,11 @@ EXAMPLES = ''' - ecs_service_facts: cluster: test-cluster ''' -RETURN = ''' + +# Disabled the RETURN as it was breaking docs building. Someone needs to fix +# this +RETURN = ''' ''' +''' services: When details is false, returns an array of service ARNs, else an array of these fields clusterArn: The Amazon Resource Name (ARN) of the of the cluster that hosts the service. desiredCount: The desired number of instantiations of the task definition to keep running on the service. @@ -71,7 +75,6 @@ services: When details is false, returns an array of service ARNs, else an array taskDefinition: The ARN of a task definition to use for tasks in the service. ''' try: - import json, os import boto import botocore HAS_BOTO = True