summaryrefslogtreecommitdiff
path: root/files/find.py
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-05 17:59:46 +0000
committerRyan Brown <sb@ryansb.com>2016-12-05 12:59:46 -0500
commitb568340d18df7767ec05b93d84c300750a1af6f3 (patch)
treee6da53ed890737cd409b6229d1ab55d6bc670b6d /files/find.py
parentd90426eec2aa889d921d0ebbf88f317a13dd4974 (diff)
downloadansible-modules-core-b568340d18df7767ec05b93d84c300750a1af6f3.tar.gz
Call main in conditional way - files (#5828)
Diffstat (limited to 'files/find.py')
-rw-r--r--files/find.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/find.py b/files/find.py
index 3fdf2646..f6bfbebe 100644
--- a/files/find.py
+++ b/files/find.py
@@ -374,5 +374,6 @@ def main():
# import module snippets
from ansible.module_utils.basic import *
-main()
+if __name__ == '__main__':
+ main()