diff options
author | Fabio Alessandro Locati <me@fale.io> | 2016-12-05 18:00:03 +0000 |
---|---|---|
committer | Ryan Brown <sb@ryansb.com> | 2016-12-05 13:00:03 -0500 |
commit | 4659c084de73db337f11e08b8b78153380e13a76 (patch) | |
tree | 976dbac1cde0ef2f34b6a0d28870fe693a1cbe68 | |
parent | b568340d18df7767ec05b93d84c300750a1af6f3 (diff) | |
download | ansible-modules-core-4659c084de73db337f11e08b8b78153380e13a76.tar.gz |
Call main in conditional way - utilities (#5827)
-rw-r--r-- | utilities/helper/_accelerate.py | 3 | ||||
-rw-r--r-- | utilities/logic/async_status.py | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/utilities/helper/_accelerate.py b/utilities/helper/_accelerate.py index 3bb79122..c00646fc 100644 --- a/utilities/helper/_accelerate.py +++ b/utilities/helper/_accelerate.py @@ -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() diff --git a/utilities/logic/async_status.py b/utilities/logic/async_status.py index 507780b4..c0e2526d 100644 --- a/utilities/logic/async_status.py +++ b/utilities/logic/async_status.py @@ -102,4 +102,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() |