summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-05 16:20:10 +0000
committerRyan Brown <sb@ryansb.com>2016-12-05 11:20:10 -0500
commita861bb8c2fb9f4f9e47d7b15c83435149008e97b (patch)
treeac5aa5ef27441f8e40e8cc6bc461a321c236d8ae
parent8cadf88e868eacd838f8e3786100ee500615f773 (diff)
downloadansible-modules-extras-a861bb8c2fb9f4f9e47d7b15c83435149008e97b.tar.gz
Make `main()` calls conditional - files (#3658)
-rw-r--r--files/patch.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/files/patch.py b/files/patch.py
index 123d667f..8b62c519 100644
--- a/files/patch.py
+++ b/files/patch.py
@@ -193,4 +193,6 @@ def main():
# import module snippets
from ansible.module_utils.basic import *
-main()
+
+if __name__ == '__main__':
+ main()