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/registration/views/registration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'windriver/titanium_cloud/registration') diff --git a/windriver/titanium_cloud/registration/views/registration.py b/windriver/titanium_cloud/registration/views/registration.py index 4225ff3b..9d052472 100644 --- a/windriver/titanium_cloud/registration/views/registration.py +++ b/windriver/titanium_cloud/registration/views/registration.py @@ -33,9 +33,10 @@ logger = logging.getLogger(__name__) class Registry(newton_registration.Registry): def __init__(self): + super(Registry, self).__init__() self.proxy_prefix = settings.MULTICLOUD_PREFIX self.aai_base_url = settings.AAI_BASE_URL - self._logger = logger + # self._logger = logger def _discover_flavors(self, vimid="", session=None, viminfo=None): try: @@ -370,9 +371,10 @@ class Registry(newton_registration.Registry): class APIv1Registry(Registry): def __init__(self): + super(APIv1Registry, self).__init__() self.proxy_prefix = settings.MULTICLOUD_API_V1_PREFIX self.aai_base_url = settings.AAI_BASE_URL - self._logger = logger + # self._logger = logger def _update_cloud_region(self, cloud_owner, cloud_region_id, openstack_region_id, viminfo, session=None): -- cgit 1.2.3-korg