Disable DEBUG mode for MC plugin windriver 03/37103/1
authorYun Huang <yun.huang@windriver.com>
Tue, 20 Mar 2018 13:19:48 +0000 (21:19 +0800)
committerYun Huang <yun.huang@windriver.com>
Tue, 20 Mar 2018 13:19:48 +0000 (21:19 +0800)
Change-Id: If46e999c75abfb84b66d045f7fa2035f947d57fa
Issue-ID: MULTICLOUD-196
Signed-off-by: Yun Huang <yun.huang@windriver.com>
12 files changed:
share/newton_base/extensions/extensions.py
share/newton_base/proxy/dnsaasdelegate.py
share/newton_base/proxy/identityV3.py
share/newton_base/proxy/proxy_utils.py
share/newton_base/proxy/services.py
windriver/titanium_cloud/extensions/views/epacaps.py
windriver/titanium_cloud/extensions/views/extensions.py
windriver/titanium_cloud/extensions/views/fcaps.py
windriver/titanium_cloud/proxy/views/identityV3.py
windriver/titanium_cloud/proxy/views/services.py
windriver/titanium_cloud/registration/views/registration.py
windriver/titanium_cloud/settings.py

index 6b3ecb5..bd43c6c 100644 (file)
@@ -30,7 +30,7 @@ from common.msapi import extsys
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 
 class Extensions(APIView):
index 8a38452..66d123f 100644 (file)
@@ -32,7 +32,7 @@ from newton_base.util import VimDriverUtils
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 class DnsaasDelegate(Services):
     '''
index 057bdf3..a7c8c54 100644 (file)
@@ -30,7 +30,7 @@ from newton_base.proxy.proxy_utils import ProxyUtils
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 v3_version_detail = {
     "version": {
index bad5b60..98ef0a2 100644 (file)
@@ -23,7 +23,7 @@ from common.exceptions import VimDriverNewtonException
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 #MULTICLOUD_PREFIX = "http://%s:%s/api/multicloud-newton/v0" %(config.MSB_SERVICE_IP, config.MSB_SERVICE_PORT)
 
 class ProxyUtils(object):
index fb0cf60..85b3ec4 100644 (file)
@@ -29,7 +29,7 @@ from newton_base.util import VimDriverUtils
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 
 class HasValidToken(BasePermission):
index 77542b3..7efb71a 100644 (file)
@@ -23,7 +23,7 @@ from newton_base.extensions import epacaps as newton_epacaps
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 
 class EpaCaps(newton_epacaps.EpaCaps):
index 680e2ca..d331b7b 100644 (file)
@@ -27,7 +27,7 @@ from newton_base.extensions import extensions as newton_extensions
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 class Extensions(newton_extensions.Extensions):
 
index d5be095..c36b264 100644 (file)
@@ -35,7 +35,7 @@ from common.msapi import extsys
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 #dict to store running worker threads
 running_threads = {}
index dd28031..c831d01 100644 (file)
@@ -19,7 +19,7 @@ from newton_base.proxy import identityV3 as newton_identityV3
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 class Tokens(newton_identityV3.Tokens):
 
index 4bfecdb..c1d4f19 100644 (file)
@@ -21,7 +21,7 @@ from newton_base.proxy import services as newton_services
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 class Services(newton_services.Services):
 
index 69c8583..a7b2831 100644 (file)
@@ -20,7 +20,7 @@ from newton_base.registration import registration as newton_registration
 
 logger = logging.getLogger(__name__)
 
-DEBUG=True
+#DEBUG=True
 
 class Registry(newton_registration.Registry):
 
index 27d44a5..f05991a 100644 (file)
@@ -32,9 +32,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 SECRET_KEY = '3o-wney!99y)^h3v)0$j16l9=fdjxcb+a8g+q3tfbahcnu2b0o'
 
 # SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
+#DEBUG = True
 
-ALLOWED_HOSTS = []
+ALLOWED_HOSTS = ['*']
 
 # Application definition