mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Surround top-level function and class definitions with two blank lines.
This commit is contained in:
committed by
Toshio Kuratomi
parent
9e310558ee
commit
b954917761
@@ -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__':
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -223,5 +223,6 @@ def main():
|
||||
else:
|
||||
module.fail_json(msg='Failed to start gunicorn {0}'.format(err), error=err)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
@@ -143,5 +143,6 @@ def main():
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -220,5 +220,6 @@ def main():
|
||||
elif module.params['state'] == 'absent':
|
||||
rundeck.remove_acl()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user