diff options
author | Yun Huang <yun.huang@windriver.com> | 2018-03-26 15:45:03 +0800 |
---|---|---|
committer | Yun Huang <yun.huang@windriver.com> | 2018-03-26 15:45:03 +0800 |
commit | 5534ba84270dbc8154fa34bd9a3d81620b6a1277 (patch) | |
tree | 82ee6ea5ef5b7dc87fe31106f697762ca67b470b /windriver | |
parent | 1fc775ff7cabcecafd8f373e9474599057422a0a (diff) |
UT data for HPA cpu instruction set capabilities
Change-Id: I0fb115409978f8d48849af5062a293b252e83006
Issue-ID: MULTICLOUD-200
Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'windriver')
-rw-r--r-- | windriver/titanium_cloud/registration/tests/test_registration.py | 5 | ||||
-rw-r--r-- | windriver/titanium_cloud/registration/views/registration.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/windriver/titanium_cloud/registration/tests/test_registration.py b/windriver/titanium_cloud/registration/tests/test_registration.py index bf192444..8ef4b4b8 100644 --- a/windriver/titanium_cloud/registration/tests/test_registration.py +++ b/windriver/titanium_cloud/registration/tests/test_registration.py @@ -59,8 +59,9 @@ MOCK_GET_FLAVOR_EXTRA_SPECS_RESPONSE = { "hw:numa_cpus.0" : "0,1", "hw:numa_cpus.1" : "2,3,4,5", "hw:numa_mem.0" : "2048", - "hw:numa_mem.1" : "2048" - + "hw:numa_mem.1" : "2048", + "hw:capabilities:cpu_info:features":"avx,acpi" + } } diff --git a/windriver/titanium_cloud/registration/views/registration.py b/windriver/titanium_cloud/registration/views/registration.py index a7103056..4db8e987 100644 --- a/windriver/titanium_cloud/registration/views/registration.py +++ b/windriver/titanium_cloud/registration/views/registration.py @@ -119,7 +119,7 @@ class Registry(newton_registration.Registry): hpa_caps.append(caps_dict) # CPU instruction set extension capabilities - caps_dict = self._get_instruction_set_capabilities(flavor) + caps_dict = self._get_instruction_set_capabilities(extra_specs) if len(caps_dict) > 0: self._logger.debug("instruction_set_capabilities_info: %s" % caps_dict) hpa_caps.append(caps_dict) |