summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/vesagent/vesagent_ctrl.py
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-08-15 06:11:24 +0000
committerBin Yang <bin.yang@windriver.com>2018-08-15 06:11:24 +0000
commit400e1b7c35a1db4cdcf20f4453631bc0888a330f (patch)
tree49d1c5355fb2072f8be9975fa83ae93ae5d7dc60 /windriver/titanium_cloud/vesagent/vesagent_ctrl.py
parent8eacf7b7496a7864313595dcf3780d83b423c338 (diff)
API upgrading for OPENOAPI
Change-Id: I8d0fdc7671d9333ee24e77dda9e07c32a0767950 Issue-ID: MULTICLOUD-297 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/vesagent/vesagent_ctrl.py')
-rw-r--r--windriver/titanium_cloud/vesagent/vesagent_ctrl.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/windriver/titanium_cloud/vesagent/vesagent_ctrl.py b/windriver/titanium_cloud/vesagent/vesagent_ctrl.py
index 39c36581..a85ce150 100644
--- a/windriver/titanium_cloud/vesagent/vesagent_ctrl.py
+++ b/windriver/titanium_cloud/vesagent/vesagent_ctrl.py
@@ -406,7 +406,7 @@ class VesAgentCtrl(APIView):
return None
-class VesAgentCtrlV1(VesAgentCtrl):
+class APIv1VesAgentCtrl(VesAgentCtrl):
def __init__(self):
self._logger = logger
@@ -421,10 +421,9 @@ class VesAgentCtrlV1(VesAgentCtrl):
:return:
'''
self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner,cloud_region_id))
- self._logger.debug("with META: %s" % request.META)
vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
- return super(VesAgentCtrlV1,self).get(request, vimid)
+ return super(APIv1VesAgentCtrl,self).get(request, vimid)
def post(self, request, cloud_owner="", cloud_region_id=""):
@@ -436,9 +435,9 @@ class VesAgentCtrlV1(VesAgentCtrl):
:return:
'''
self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner,cloud_region_id))
- self._logger.debug("with META: %s, with data: %s" % (request.META, request.data))
+
vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
- return super(VesAgentCtrlV1,self).post(request, vimid)
+ return super(APIv1VesAgentCtrl,self).post(request, vimid)
def delete(self, request, cloud_owner="", cloud_region_id=""):
@@ -450,7 +449,7 @@ class VesAgentCtrlV1(VesAgentCtrl):
:return:
'''
self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner,cloud_region_id))
- self._logger.debug("with META: %s" % request.META)
+
vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
- return super(VesAgentCtrlV1,self).delete(request, vimid)
+ return super(APIv1VesAgentCtrl,self).delete(request, vimid)