summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/redfish/inspect.py
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2023-03-23 15:45:31 +0100
committerDmitry Tantsur <dtantsur@protonmail.com>2023-03-28 11:53:26 +0200
commit3e21560bf70e5e6b529d9a2d37a2897461076395 (patch)
tree02d08b636515d34ce6a115cb3d01e3cc21bdd5e2 /ironic/drivers/modules/redfish/inspect.py
parentb201e52f8904a5d3d546ea58e6e384d81c3ae066 (diff)
downloadironic-3e21560bf70e5e6b529d9a2d37a2897461076395.tar.gz
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
Diffstat (limited to 'ironic/drivers/modules/redfish/inspect.py')
-rw-r--r--ironic/drivers/modules/redfish/inspect.py4
1 files changed, 1 insertions, 3 deletions
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: