From 1c3aeb5cb7e916b7e57f666568af03bb616f985a Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Mon, 5 Dec 2016 17:06:04 +0000 Subject: [PATCH] Call main in conditional way - source_control --- lib/ansible/modules/source_control/subversion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/source_control/subversion.py b/lib/ansible/modules/source_control/subversion.py index 1049a3e6a56..dc9cedbbedf 100644 --- a/lib/ansible/modules/source_control/subversion.py +++ b/lib/ansible/modules/source_control/subversion.py @@ -304,4 +304,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main()