diff options
author | Fabio Alessandro Locati <me@fale.io> | 2016-12-05 17:59:46 +0000 |
---|---|---|
committer | Ryan Brown <sb@ryansb.com> | 2016-12-05 12:59:46 -0500 |
commit | b568340d18df7767ec05b93d84c300750a1af6f3 (patch) | |
tree | e6da53ed890737cd409b6229d1ab55d6bc670b6d /files | |
parent | d90426eec2aa889d921d0ebbf88f317a13dd4974 (diff) | |
download | ansible-modules-core-b568340d18df7767ec05b93d84c300750a1af6f3.tar.gz |
Call main in conditional way - files (#5828)
Diffstat (limited to 'files')
-rw-r--r-- | files/acl.py | 3 | ||||
-rw-r--r-- | files/find.py | 3 | ||||
-rw-r--r-- | files/synchronize.py | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/files/acl.py b/files/acl.py index 4974b6bb..fda245d4 100644 --- a/files/acl.py +++ b/files/acl.py @@ -368,4 +368,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main() 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() diff --git a/files/synchronize.py b/files/synchronize.py index 89541840..eb813b72 100644 --- a/files/synchronize.py +++ b/files/synchronize.py @@ -497,4 +497,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main() |