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
|
short_description: register a task definition in ecs
|
||||||
description:
|
description:
|
||||||
- Creates or terminates task definitions
|
- Creates or terminates task definitions
|
||||||
version_added: "1.9"
|
version_added: "2.0"
|
||||||
requirements: [ json, boto, botocore, boto3 ]
|
requirements: [ json, boto, botocore, boto3 ]
|
||||||
options:
|
options:
|
||||||
state:
|
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")
|
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)
|
self.ecs = boto3_conn(module, conn_type='client', resource='ecs', region=region, endpoint=ec2_url, **aws_connect_kwargs)
|
||||||
except boto.exception.NoAuthHandlerFound, e:
|
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):
|
def describe_task(self, task_name):
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -20,7 +20,7 @@ module: ecs_taskdefinition_facts
|
||||||
short_description: return facts about task definitions in ecs
|
short_description: return facts about task definitions in ecs
|
||||||
description:
|
description:
|
||||||
- Describes or lists task definitions.
|
- Describes or lists task definitions.
|
||||||
version_added: 1.9
|
version_added: 2.0
|
||||||
requirements: [ json, os, boto, botocore, boto3 ]
|
requirements: [ json, os, boto, botocore, boto3 ]
|
||||||
options:
|
options:
|
||||||
details:
|
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")
|
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)
|
self.ecs = boto3_conn(module, conn_type='client', resource='ecs', region=region, endpoint=ec2_url, **aws_connect_kwargs)
|
||||||
except boto.exception.NoAuthHandlerFound, e:
|
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):
|
def transmogrify(self, params, field, dictionary, arg_name):
|
||||||
if field in params and params[field] is not None:
|
if field in params and params[field] is not None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue