From 3e21560bf70e5e6b529d9a2d37a2897461076395 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Thu, 23 Mar 2023 15:45:31 +0100 Subject: Remove all references to the "cpus" property Unused by Nova and unlike memory_mb/local_gb also by Ironic (actually, our usage of local_gb is worth double-checking as well, but at the very least it's referenced by inspection implementations). Change-Id: Ie8b0d9f58f4dcd102c183c30ae7f5acf68a5e4c3 --- ironic/drivers/modules/redfish/inspect.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ironic/drivers/modules/redfish/inspect.py') diff --git a/ironic/drivers/modules/redfish/inspect.py b/ironic/drivers/modules/redfish/inspect.py index 4c5f7c344..c514df4fe 100644 --- a/ironic/drivers/modules/redfish/inspect.py +++ b/ironic/drivers/modules/redfish/inspect.py @@ -108,9 +108,7 @@ class RedfishInspect(base.InspectInterface): system.memory_summary.size_gib * units.Ki) if system.processors and system.processors.summary: - cpus, arch = system.processors.summary - if cpus: - inspected_properties['cpus'] = cpus + arch = system.processors.summary[1] if arch: try: -- cgit v1.2.1