summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/extensions/views/fcaps.py
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-07 09:16:38 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-07 09:23:18 +0800
commit9b38263158909c0d20c0f36438071b3c532ec284 (patch)
tree05cebf5569f401ddeb095ea6282e2203e6c3eec0 /windriver/titanium_cloud/extensions/views/fcaps.py
parent8ff2e0716d126a9d47dc98f933bb0bc046faa05d (diff)
Change the code base from newton to share
And adopt settings,depreciate config Change-Id: Ib467a6e914ae89ab8799d38191dfed8b3cd7b726 Issue-ID: MULTICLOUD-138 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/extensions/views/fcaps.py')
-rw-r--r--windriver/titanium_cloud/extensions/views/fcaps.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/windriver/titanium_cloud/extensions/views/fcaps.py b/windriver/titanium_cloud/extensions/views/fcaps.py
index 894db367..d5be095f 100644
--- a/windriver/titanium_cloud/extensions/views/fcaps.py
+++ b/windriver/titanium_cloud/extensions/views/fcaps.py
@@ -24,10 +24,10 @@ from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
-from titanium_cloud.pub.config import config
-from newton.pub.exceptions import VimDriverNewtonException
-from newton.requests.views.util import VimDriverUtils
-from newton.pub.msapi import extsys
+from django.conf import settings
+from common.exceptions import VimDriverNewtonException
+from newton_base.util import VimDriverUtils
+from common.msapi import extsys
@@ -126,7 +126,7 @@ class GuestMonitorWorker (threading.Thread):
class GuestMonitor(APIView):
def __init__(self):
- self.proxy_prefix = config.MULTICLOUD_PREFIX
+ self.proxy_prefix = settings.MULTICLOUD_PREFIX
self._logger = logger
def post(self, request, vimid="", vserverid=""):