summaryrefslogtreecommitdiff
path: root/cloud/amazon/ecs_task.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloud/amazon/ecs_task.py')
-rw-r--r--cloud/amazon/ecs_task.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloud/amazon/ecs_task.py b/cloud/amazon/ecs_task.py
index 000ce68b..c2bd7375 100644
--- a/cloud/amazon/ecs_task.py
+++ b/cloud/amazon/ecs_task.py
@@ -98,7 +98,6 @@ task:
sample: "TODO: include sample"
'''
try:
- import json
import boto
import botocore
HAS_BOTO = True
@@ -123,7 +122,7 @@ class EcsExecManager:
module.fail_json(msg="Region must be specified as a parameter, in EC2_REGION or AWS_REGION environment variables or in boto configuration file")
self.ecs = boto3_conn(module, conn_type='client', resource='ecs', region=region, endpoint=ec2_url, **aws_connect_kwargs)
except boto.exception.NoAuthHandlerFound, e:
- self.module.fail_json(msg="Can't authorize connection - "+str(e))
+ module.fail_json(msg="Can't authorize connection - "+str(e))
def list_tasks(self, cluster_name, service_name, status):
response = self.ecs.list_tasks(