summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-05 16:25:01 +0000
committerRyan Brown <sb@ryansb.com>2016-12-05 11:25:01 -0500
commit936086fe1bd961af7ca56e5685bc4cda611a91ea (patch)
treecfd8561225479c0164d7b1bb9243c442096f3e3c
parentacf1f63325f00b512377af7df3c92308266a1777 (diff)
downloadansible-modules-extras-936086fe1bd961af7ca56e5685bc4cda611a91ea.tar.gz
Make `main()` calls conditional - commands (#3655)
-rw-r--r--commands/expect.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/expect.py b/commands/expect.py
index c6f70e75..a8eff373 100644
--- a/commands/expect.py
+++ b/commands/expect.py
@@ -234,4 +234,5 @@ def main():
from ansible.module_utils.basic import *
from ansible.module_utils.pycompat24 import get_exception
-main()
+if __name__ == '__main__':
+ main()