summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandro Locati <fale@redhat.com>2016-12-05 17:03:05 +0000
committerFabio Alessandro Locati <fale@redhat.com>2016-12-05 17:03:05 +0000
commit636106861ef817da24b0a26dbda8ea6308d60b15 (patch)
treeb36f22c49d97ebf02e01be85476248f9b6116b81
parent60b82f757dade5eefea905f97a4ebdc1d9ef1937 (diff)
downloadansible-modules-core-636106861ef817da24b0a26dbda8ea6308d60b15.tar.gz
Call main in conditional way - web_infrastructure
-rw-r--r--web_infrastructure/django_manage.py3
1 files changed, 2 insertions, 1 deletions
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()