From 11e3ec26ea93be6ad919873a9d88cf4f9f804d8d Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Mon, 5 Dec 2016 16:20:10 +0000 Subject: [PATCH] Make `main()` calls conditional - files (#3658) --- lib/ansible/modules/extras/files/patch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/files/patch.py b/lib/ansible/modules/extras/files/patch.py index 123d667fdbf..8b62c519073 100644 --- a/lib/ansible/modules/extras/files/patch.py +++ b/lib/ansible/modules/extras/files/patch.py @@ -193,4 +193,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main()