summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/extensions
diff options
context:
space:
mode:
authorXiaohua Zhang <xiaohua.zhang@windriver.com>2018-08-27 07:16:17 +0000
committerXiaohua Zhang <xiaohua.zhang@windriver.com>2018-08-27 07:16:17 +0000
commit92e88758f73b99c8b817f318702d7b63e265a634 (patch)
tree313f6c3c4bf055822f9e979f509d0e8bc56b4123 /windriver/titanium_cloud/extensions
parent0321035cf1f31a07929de22a31bf520861f1eaff (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/extensions')
-rw-r--r--windriver/titanium_cloud/extensions/views/extensions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/windriver/titanium_cloud/extensions/views/extensions.py b/windriver/titanium_cloud/extensions/views/extensions.py
index 5b857303..9360cbba 100644
--- a/windriver/titanium_cloud/extensions/views/extensions.py
+++ b/windriver/titanium_cloud/extensions/views/extensions.py
@@ -32,7 +32,8 @@ logger = logging.getLogger(__name__)
class Extensions(newton_extensions.Extensions):
def __init__(self):
- self._logger = logger
+ super(Extensions, self).__init__()
+ # self._logger = logger
self.proxy_prefix = settings.MULTICLOUD_PREFIX
@@ -76,7 +77,8 @@ class Extensions(newton_extensions.Extensions):
class APIv1Extensions(Extensions):
def __init__(self):
- self._logger = logger
+ super(APIv1Extensions, self).__init__()
+ # self._logger = logger
self.proxy_prefix = settings.MULTICLOUD_API_V1_PREFIX