mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
Detect presence of SKU entries
The use of the iter method should not be used to determine if a SKU entry exists as it will always return a tree iterator. Instead the find method is used to determine if at least one SKU entry is present. Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
This commit is contained in:
committed by
Nathaniel Mitchell
parent
c3be0bee46
commit
3ec1b8a66c
+1
-1
@@ -419,7 +419,7 @@ class Chipset:
|
||||
self.detection_dictionary[format(rdv_value,'X')] = _cfg.attrib['platform'].upper()
|
||||
else:
|
||||
self.detection_dictionary[dv.strip().upper()] = _cfg.attrib['platform'].upper()
|
||||
if _info.iter('sku'):
|
||||
if _info.find('sku') is not None:
|
||||
_det = ""
|
||||
_did = ""
|
||||
for _sku in _info.iter('sku'):
|
||||
|
||||
Reference in New Issue
Block a user