Surround top-level function and class definitions with two blank lines.

This commit is contained in:
Joren Vrancken
2018-07-29 13:46:06 +02:00
committed by Toshio Kuratomi
parent 9e310558ee
commit b954917761
373 changed files with 408 additions and 28 deletions

View File

@@ -431,6 +431,7 @@ def main():
else:
module.fail_json(msg=str(module.params['member_host']) + ' is not a member of the balancer ' + str(module.params['balancer_vhost']) + '!')
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.urls import fetch_url
if __name__ == '__main__':

View File

@@ -108,6 +108,9 @@ stderr:
import re
# import module snippets
from ansible.module_utils.basic import AnsibleModule
def _run_threaded(module):
control_binary = _get_ctl_binary(module)
@@ -259,7 +262,6 @@ def main():
if module.params['state'] in ['present', 'absent']:
_set_state(module, module.params['state'])
# import module snippets
from ansible.module_utils.basic import AnsibleModule
if __name__ == '__main__':
main()

View File

@@ -223,5 +223,6 @@ def main():
else:
module.fail_json(msg='Failed to start gunicorn {0}'.format(err), error=err)
if __name__ == '__main__':
main()

View File

@@ -143,5 +143,6 @@ def main():
module.exit_json(**result)
if __name__ == '__main__':
main()

View File

@@ -367,6 +367,7 @@ def link(restbase, user, passwd, params):
return ret
# Some parameters are required depending on the operation:
OP_REQUIRED = dict(create=['project', 'issuetype', 'summary', 'description'],
comment=['issue', 'comment'],

View File

@@ -220,5 +220,6 @@ def main():
elif module.params['state'] == 'absent':
rundeck.remove_acl()
if __name__ == '__main__':
main()

View File

@@ -236,5 +236,6 @@ def main():
module.fail_json(name=name, msg="ERROR (no such process)")
take_action_on_processes(processes, lambda s: s in ('RUNNING', 'STARTING'), 'stop', 'stopped')
if __name__ == '__main__':
main()