mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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
|
# 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…
Add table
Reference in a new issue