From 636106861ef817da24b0a26dbda8ea6308d60b15 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Mon, 5 Dec 2016 17:03:05 +0000 Subject: Call main in conditional way - web_infrastructure --- web_infrastructure/django_manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_infrastructure/django_manage.py b/web_infrastructure/django_manage.py index f334f398..b21c2834 100644 --- a/web_infrastructure/django_manage.py +++ b/web_infrastructure/django_manage.py @@ -294,4 +294,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main() -- cgit v1.2.1