update version, fix fail msgs
This commit is contained in:
parent
03cd38e7ab
commit
dca0d4a08c
2 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ module: ecs_taskdefinition
|
|||
short_description: register a task definition in ecs
|
||||
description:
|
||||
- Creates or terminates task definitions
|
||||
version_added: "1.9"
|
||||
version_added: "2.0"
|
||||
requirements: [ json, boto, botocore, boto3 ]
|
||||
options:
|
||||
state:
|
||||
|
@ -114,7 +114,7 @@ class EcsTaskManager:
|
|||
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=str(e))
|
||||
self.module.fail_json(msg="Can't authorize connection - "+str(e))
|
||||
|
||||
def describe_task(self, task_name):
|
||||
try:
|
||||
|
|
|
@ -20,7 +20,7 @@ module: ecs_taskdefinition_facts
|
|||
short_description: return facts about task definitions in ecs
|
||||
description:
|
||||
- Describes or lists task definitions.
|
||||
version_added: 1.9
|
||||
version_added: 2.0
|
||||
requirements: [ json, os, boto, botocore, boto3 ]
|
||||
options:
|
||||
details:
|
||||
|
@ -105,7 +105,7 @@ class EcsTaskManager:
|
|||
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=str(e))
|
||||
self.module.fail_json(msg="Can't authorize connection - "+str(e))
|
||||
|
||||
def transmogrify(self, params, field, dictionary, arg_name):
|
||||
if field in params and params[field] is not None:
|
||||
|
|
Loading…
Reference in a new issue