summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/registration/views
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/registration/views
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/registration/views')
-rw-r--r--windriver/titanium_cloud/registration/views/registration.py6
1 files changed, 4 insertions, 2 deletions
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):