summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/proxy/views/identityV3.py
diff options
context:
space:
mode:
Diffstat (limited to 'windriver/titanium_cloud/proxy/views/identityV3.py')
-rw-r--r--windriver/titanium_cloud/proxy/views/identityV3.py29
1 files changed, 13 insertions, 16 deletions
diff --git a/windriver/titanium_cloud/proxy/views/identityV3.py b/windriver/titanium_cloud/proxy/views/identityV3.py
index 85fec086..3f369552 100644
--- a/windriver/titanium_cloud/proxy/views/identityV3.py
+++ b/windriver/titanium_cloud/proxy/views/identityV3.py
@@ -20,17 +20,18 @@ from common.msapi import extsys
logger = logging.getLogger(__name__)
+
# DEBUG=True
-class Tokens(newton_identityV3.Tokens):
+class Tokens(newton_identityV3.Tokens):
def __init__(self):
super(Tokens, self).__init__()
self.proxy_prefix = settings.MULTICLOUD_PREFIX
# self._logger = logger
-class TokensV2(newton_identityV3.TokensV2):
+class TokensV2(newton_identityV3.TokensV2):
def __init__(self):
super(TokensV2, self).__init__()
self.proxy_prefix = settings.MULTICLOUD_PREFIX
@@ -43,23 +44,21 @@ class APIv1Tokens(Tokens):
self.proxy_prefix = settings.MULTICLOUD_API_V1_PREFIX
# self._logger = logger
-
def get(self, request, cloud_owner="", cloud_region_id=""):
- self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner,cloud_region_id))
- #self._logger.debug("META> %s" % request.META)
- #self._logger.debug("data> %s" % request.data)
+ self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner, cloud_region_id))
+ # self._logger.debug("META> %s" % request.META)
+ # self._logger.debug("data> %s" % request.data)
vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
- return super(APIv1Tokens,self).get(request, vimid)
-
+ return super(APIv1Tokens, self).get(request, vimid)
def post(self, request, cloud_owner="", cloud_region_id=""):
- self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner,cloud_region_id))
+ self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner, cloud_region_id))
# self._logger.debug("META> %s" % request.META)
# self._logger.debug("data> %s" % request.data)
vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
- return super(APIv1Tokens,self).post(request, vimid)
+ return super(APIv1Tokens, self).post(request, vimid)
class APIv1TokensV2(TokensV2):
@@ -68,20 +67,18 @@ class APIv1TokensV2(TokensV2):
self.proxy_prefix = settings.MULTICLOUD_API_V1_PREFIX
# self._logger = logger
-
def get(self, request, cloud_owner="", cloud_region_id=""):
- self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner,cloud_region_id))
+ self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner, cloud_region_id))
# self._logger.debug("META> %s" % request.META)
# self._logger.debug("data> %s" % request.data)
vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
- return super(APIv1TokensV2,self).get(request, vimid)
-
+ return super(APIv1TokensV2, self).get(request, vimid)
def post(self, request, cloud_owner="", cloud_region_id=""):
- self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner,cloud_region_id))
+ self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner, cloud_region_id))
# self._logger.debug("META> %s" % request.META)
# self._logger.debug("data> %s" % request.data)
vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
- return super(APIv1TokensV2,self).post(request, vimid)
+ return super(APIv1TokensV2, self).post(request, vimid)