summaryrefslogtreecommitdiffstats
path: root/lenovo
diff options
context:
space:
mode:
Diffstat (limited to 'lenovo')
-rw-r--r--lenovo/thinkcloud/registration/tests/test_registration2.py12
-rw-r--r--lenovo/thinkcloud/registration/views/registration.py2
2 files changed, 10 insertions, 4 deletions
diff --git a/lenovo/thinkcloud/registration/tests/test_registration2.py b/lenovo/thinkcloud/registration/tests/test_registration2.py
index d799c90a..7abd6073 100644
--- a/lenovo/thinkcloud/registration/tests/test_registration2.py
+++ b/lenovo/thinkcloud/registration/tests/test_registration2.py
@@ -92,8 +92,10 @@ class TestRegistration2(unittest.TestCase):
}
)
- resp = self.view._discover_flavors(vimid="lenovo-hudson-dc_RegionOne",
- session=mock_session, viminfo=MOCK_VIM_INFO)
+ resp = self.view.register_helper._discover_flavors(
+ vimid="lenovo-hudson-dc_RegionOne",
+ session=mock_session, viminfo=MOCK_VIM_INFO
+ )
self.assertIsNone(resp)
@@ -110,7 +112,9 @@ class TestRegistration2(unittest.TestCase):
}
),
- resp = self.view._discover_flavors(vimid="lenovo-hudson-dc_RegionOne",
- session=mock_session, viminfo=MOCK_VIM_INFO)
+ resp = self.view.register_helper._discover_flavors(
+ vimid="lenovo-hudson-dc_RegionOne",
+ session=mock_session, viminfo=MOCK_VIM_INFO
+ )
self.assertIsNone(resp)
diff --git a/lenovo/thinkcloud/registration/views/registration.py b/lenovo/thinkcloud/registration/views/registration.py
index 0fe4a80e..c55bf712 100644
--- a/lenovo/thinkcloud/registration/views/registration.py
+++ b/lenovo/thinkcloud/registration/views/registration.py
@@ -29,6 +29,7 @@ class Registry(newton_registration.Registry):
self.proxy_prefix = settings.MULTICLOUD_PREFIX
self.aai_base_url = settings.AAI_BASE_URL
self._logger = logger
+ super(Registry, self).__init__()
class RegistryV1(Registry):
@@ -36,6 +37,7 @@ class RegistryV1(Registry):
self.proxy_prefix = settings.MULTICLOUD_API_V1_PREFIX
self.aai_base_url = settings.AAI_BASE_URL
self._logger = logger
+ super(RegistryV1, self).__init__()
def post(self, request, cloud_owner="", cloud_region_id=""):
self._logger.info("registration with : %s, %s" % (cloud_owner, cloud_region_id))