Call main in conditional way - utilities (#5827)

pull/18777/head
Fabio Alessandro Locati 8 years ago committed by Matt Clay
parent 2e34bad425
commit 17c80f6bbb

@ -738,4 +738,5 @@ def main():
# try to start up the daemon # try to start up the daemon
daemonize(module, password, port, timeout, minutes, ipv6, pid_file) daemonize(module, password, port, timeout, minutes, ipv6, pid_file)
main() if __name__ == '__main__':
main()

@ -102,4 +102,6 @@ def main():
# import module snippets # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main()
if __name__ == '__main__':
main()

Loading…
Cancel
Save