summaryrefslogtreecommitdiffstats
path: root/share/newton_base/openoapi/alarm.py
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-05-28 05:32:54 +0000
committerBin Yang <bin.yang@windriver.com>2019-05-28 05:32:54 +0000
commit9154720606df1bb43e501a63cd23beca77a409eb (patch)
tree8c90d5891f45c28a408bc52100ff78c696186380 /share/newton_base/openoapi/alarm.py
parenteb1e6c75c236bd88a3c371befebcb56fa4f9f090 (diff)
Fix issue of v1/.../tenants API
Fix all openoapi v1 which use logger Change-Id: Iaf82c1ca17959725531f6b340e3e770844dd222c Issue-ID: MULTICLOUD-657 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'share/newton_base/openoapi/alarm.py')
-rwxr-xr-xshare/newton_base/openoapi/alarm.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/newton_base/openoapi/alarm.py b/share/newton_base/openoapi/alarm.py
index 3cbcf9ad..8538a191 100755
--- a/share/newton_base/openoapi/alarm.py
+++ b/share/newton_base/openoapi/alarm.py
@@ -37,6 +37,10 @@ class Alarms(APIView):
("container_format", "containerFormat")
]
+ def __init__(self):
+ super(Alarms, self).__init__()
+ self._logger = logger
+
def get(self, request, vimid="", tenantid="", alarmid=""):
logger.debug("alarms--get::> %s" % request.data)
try: