Call main in conditional way - utilities (#5827)

This commit is contained in:
Fabio Alessandro Locati 2016-12-05 18:00:03 +00:00 committed by Matt Clay
parent 2e34bad425
commit 17c80f6bbb
2 changed files with 5 additions and 2 deletions

View file

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

View file

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