diff options
author | Xiaohua Zhang <xiaohua.zhang@windriver.com> | 2018-08-27 07:16:17 +0000 |
---|---|---|
committer | Xiaohua Zhang <xiaohua.zhang@windriver.com> | 2018-08-27 07:16:17 +0000 |
commit | 92e88758f73b99c8b817f318702d7b63e265a634 (patch) | |
tree | 313f6c3c4bf055822f9e979f509d0e8bc56b4123 /windriver/titanium_cloud/resource/views | |
parent | 0321035cf1f31a07929de22a31bf520861f1eaff (diff) |
Fix subclass init issue
All subclass should invoke parent class __init__()
Change-Id: Id7537156dc65f4c4739d2b70cc705d2ff39f4ff0
Issue-ID: MULTICLOUD-337
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/resource/views')
-rw-r--r-- | windriver/titanium_cloud/resource/views/capacity.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/windriver/titanium_cloud/resource/views/capacity.py b/windriver/titanium_cloud/resource/views/capacity.py index 1b4566c3..0619e83b 100644 --- a/windriver/titanium_cloud/resource/views/capacity.py +++ b/windriver/titanium_cloud/resource/views/capacity.py @@ -145,10 +145,11 @@ class CapacityCheck(APIView): -class APIv1CapacityCheck(APIView): +class APIv1CapacityCheck(CapacityCheck): def __init__(self): - self._logger = logger + super(APIv1CapacityCheck, self).__init__() + # self._logger = logger def post(self, request, cloud_owner="", cloud_region_id=""): self._logger.info("vimid, data> %s,%s, %s" % (cloud_owner, cloud_region_id, request.data)) |