mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-28 03:49:09 -07:00
Bulk autopep8 (modules)
As agreed in 2017-12-07 Core meeting bulk fix pep8 issues Generated using: autopep8 1.3.3 (pycodestyle: 2.3.1) autopep8 -r --max-line-length 160 --in-place --ignore E305,E402,E722,E741 lib/ansible/modules Manually fix issues that autopep8 has introduced
This commit is contained in:
parent
d13d7e9404
commit
c57a7f05e1
314 changed files with 3462 additions and 3383 deletions
|
@ -131,6 +131,7 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
from ansible.module_utils.ec2 import boto3_conn, camel_dict_to_snake_dict, ec2_argument_spec, get_aws_connection_info
|
||||
from ansible.module_utils._text import to_text
|
||||
|
||||
|
||||
class EcsTaskManager:
|
||||
"""Handles ECS Tasks"""
|
||||
|
||||
|
@ -183,7 +184,7 @@ class EcsTaskManager:
|
|||
def describe_task_definitions(self, family):
|
||||
data = {
|
||||
"taskDefinitionArns": [],
|
||||
"nextToken": None
|
||||
"nextToken": None
|
||||
}
|
||||
|
||||
def fetch():
|
||||
|
@ -371,7 +372,7 @@ def main():
|
|||
if 'arn' in module.params and module.params['arn'] is not None:
|
||||
task_to_describe = module.params['arn']
|
||||
elif 'family' in module.params and module.params['family'] is not None and 'revision' in module.params and \
|
||||
module.params['revision'] is not None:
|
||||
module.params['revision'] is not None:
|
||||
task_to_describe = module.params['family'] + ":" + str(module.params['revision'])
|
||||
else:
|
||||
module.fail_json(msg="To use task definitions, an arn or family and revision must be specified")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue