From 8f2f1ef249d6d807b114a6a7e8cd385101bb578f Mon Sep 17 00:00:00 2001 From: Yun Huang Date: Tue, 20 Mar 2018 21:19:48 +0800 Subject: Disable DEBUG mode for MC plugin windriver Change-Id: If46e999c75abfb84b66d045f7fa2035f947d57fa Issue-ID: MULTICLOUD-196 Signed-off-by: Yun Huang --- share/newton_base/extensions/extensions.py | 2 +- share/newton_base/proxy/dnsaasdelegate.py | 2 +- share/newton_base/proxy/identityV3.py | 2 +- share/newton_base/proxy/proxy_utils.py | 2 +- share/newton_base/proxy/services.py | 2 +- windriver/titanium_cloud/extensions/views/epacaps.py | 2 +- windriver/titanium_cloud/extensions/views/extensions.py | 2 +- windriver/titanium_cloud/extensions/views/fcaps.py | 2 +- windriver/titanium_cloud/proxy/views/identityV3.py | 2 +- windriver/titanium_cloud/proxy/views/services.py | 2 +- windriver/titanium_cloud/registration/views/registration.py | 2 +- windriver/titanium_cloud/settings.py | 4 ++-- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/share/newton_base/extensions/extensions.py b/share/newton_base/extensions/extensions.py index 6b3ecb57..bd43c6ca 100644 --- a/share/newton_base/extensions/extensions.py +++ b/share/newton_base/extensions/extensions.py @@ -30,7 +30,7 @@ from common.msapi import extsys logger = logging.getLogger(__name__) -DEBUG=True +#DEBUG=True class Extensions(APIView): diff --git a/share/newton_base/proxy/dnsaasdelegate.py b/share/newton_base/proxy/dnsaasdelegate.py index 8a384527..66d123f1 100644 --- a/share/newton_base/proxy/dnsaasdelegate.py +++ b/share/newton_base/proxy/dnsaasdelegate.py @@ -32,7 +32,7 @@ from newton_base.util import VimDriverUtils logger = logging.getLogger(__name__) -DEBUG=True +#DEBUG=True class DnsaasDelegate(Services): ''' diff --git a/share/newton_base/proxy/identityV3.py b/share/newton_base/proxy/identityV3.py index 057bdf3e..a7c8c546 100644 --- a/share/newton_base/proxy/identityV3.py +++ b/share/newton_base/proxy/identityV3.py @@ -30,7 +30,7 @@ from newton_base.proxy.proxy_utils import ProxyUtils logger = logging.getLogger(__name__) -DEBUG=True +#DEBUG=True v3_version_detail = { "version": { diff --git a/share/newton_base/proxy/proxy_utils.py b/share/newton_base/proxy/proxy_utils.py index bad5b60f..98ef0a20 100644 --- a/share/newton_base/proxy/proxy_utils.py +++ b/share/newton_base/proxy/proxy_utils.py @@ -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): diff --git a/share/newton_base/proxy/services.py b/share/newton_base/proxy/services.py index fb0cf60a..85b3ec49 100644 --- a/share/newton_base/proxy/services.py +++ b/share/newton_base/proxy/services.py @@ -29,7 +29,7 @@ from newton_base.util import VimDriverUtils logger = logging.getLogger(__name__) -DEBUG=True +#DEBUG=True class HasValidToken(BasePermission): diff --git a/windriver/titanium_cloud/extensions/views/epacaps.py b/windriver/titanium_cloud/extensions/views/epacaps.py index 77542b31..7efb71a6 100644 --- a/windriver/titanium_cloud/extensions/views/epacaps.py +++ b/windriver/titanium_cloud/extensions/views/epacaps.py @@ -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): diff --git a/windriver/titanium_cloud/extensions/views/extensions.py b/windriver/titanium_cloud/extensions/views/extensions.py index 680e2ca6..d331b7b5 100644 --- a/windriver/titanium_cloud/extensions/views/extensions.py +++ b/windriver/titanium_cloud/extensions/views/extensions.py @@ -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): diff --git a/windriver/titanium_cloud/extensions/views/fcaps.py b/windriver/titanium_cloud/extensions/views/fcaps.py index d5be095f..c36b2642 100644 --- a/windriver/titanium_cloud/extensions/views/fcaps.py +++ b/windriver/titanium_cloud/extensions/views/fcaps.py @@ -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 = {} diff --git a/windriver/titanium_cloud/proxy/views/identityV3.py b/windriver/titanium_cloud/proxy/views/identityV3.py index dd280314..c831d017 100644 --- a/windriver/titanium_cloud/proxy/views/identityV3.py +++ b/windriver/titanium_cloud/proxy/views/identityV3.py @@ -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): diff --git a/windriver/titanium_cloud/proxy/views/services.py b/windriver/titanium_cloud/proxy/views/services.py index 4bfecdbc..c1d4f194 100644 --- a/windriver/titanium_cloud/proxy/views/services.py +++ b/windriver/titanium_cloud/proxy/views/services.py @@ -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): diff --git a/windriver/titanium_cloud/registration/views/registration.py b/windriver/titanium_cloud/registration/views/registration.py index 69c85837..a7b2831f 100644 --- a/windriver/titanium_cloud/registration/views/registration.py +++ b/windriver/titanium_cloud/registration/views/registration.py @@ -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): diff --git a/windriver/titanium_cloud/settings.py b/windriver/titanium_cloud/settings.py index 27d44a52..f05991a9 100644 --- a/windriver/titanium_cloud/settings.py +++ b/windriver/titanium_cloud/settings.py @@ -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 -- cgit 1.2.3-korg