mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-10 18:34:03 -07:00
update version, fix fail msgs
This commit is contained in:
parent
9aa40a5826
commit
a1429f868b
2 changed files with 5 additions and 7 deletions
|
@ -25,7 +25,7 @@ notes:
|
|||
for the ecs service, ecs.amazonaws.com)
|
||||
dependecies:
|
||||
- An IAM role must have been created
|
||||
version_added: "0.9"
|
||||
version_added: "2.0"
|
||||
options:
|
||||
'''
|
||||
|
||||
|
@ -92,7 +92,7 @@ class EcsServiceManager:
|
|||
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 list_clusters(self):
|
||||
# return self.client.list_clusters()
|
||||
|
@ -190,7 +190,7 @@ def main():
|
|||
try:
|
||||
existing = service_mgr.describe_service(module.params['cluster'], module.params['name'])
|
||||
except Exception, e:
|
||||
module.fail_json(msg=str(e))
|
||||
module.fail_json(msg="Exception describing service '"+module.params['name']+"' in cluster '"+module.params['cluster']+"': "+str(e))
|
||||
|
||||
results = dict(changed=False )
|
||||
if module.params['state'] == 'present':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue