From 92e88758f73b99c8b817f318702d7b63e265a634 Mon Sep 17 00:00:00 2001 From: Xiaohua Zhang Date: Mon, 27 Aug 2018 07:16:17 +0000 Subject: Fix subclass init issue All subclass should invoke parent class __init__() Change-Id: Id7537156dc65f4c4739d2b70cc705d2ff39f4ff0 Issue-ID: MULTICLOUD-337 Signed-off-by: Xiaohua Zhang --- windriver/titanium_cloud/extensions/views/extensions.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'windriver/titanium_cloud/extensions/views') 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 -- cgit 1.2.3-korg