summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/proxy/views/identityV3.py
diff options
context:
space:
mode:
authorXiaohua Zhang <xiaohua.zhang@windriver.com>2018-11-27 10:26:29 +0000
committerXiaohua Zhang <xiaohua.zhang@windriver.com>2018-11-27 10:26:29 +0000
commit87ba0b1dc07997db90d62df3c50cbb826fb8b828 (patch)
tree8dd539d4dc3108d7f0470183ed612d92abb092a5 /windriver/titanium_cloud/proxy/views/identityV3.py
parent2a4dd5b2e224db4a34870e836dc47989c830d837 (diff)
Fix pep8 errors in multicloud plugin
Fix pep8 errors in proxy module Change-Id: Iea570d7cdf822cf7788ec7094c46b801b0a8c8d1 Issue-ID: MULTICLOUD-420 Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
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)