Call main in conditional way - utilities (#5827)
This commit is contained in:
parent
2e34bad425
commit
17c80f6bbb
2 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -102,4 +102,6 @@ def main():
|
|||
|
||||
# import module snippets
|
||||
from ansible.module_utils.basic import *
|
||||
main()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue