From 12de0e5b84684a4ecc7f3fe0c00eb784918454f6 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Thu, 7 Nov 2019 18:58:20 -0700 Subject: [PATCH] Inlcude RAM vendor ID for unknown IDs --- scripts/wk/hw/obj.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/wk/hw/obj.py b/scripts/wk/hw/obj.py index e1ced59f..3bba408d 100644 --- a/scripts/wk/hw/obj.py +++ b/scripts/wk/hw/obj.py @@ -344,7 +344,7 @@ class Disk(): # Attributes if not self.check_attributes(only_blocking=True): blocking_event_encountered = True - LOG.error('%s: Blocked for failing attributes', self.path) + LOG.error('%s: Blocked for failing attribute(s)', self.path) # NVMe status # TODO: See https://github.com/2Shirt/WizardKit/issues/130 @@ -618,7 +618,9 @@ def get_ram_list_macos(): dimm_details = plist_data[0].get('_items', [{}])[0].get('_items', []) for dimm in dimm_details: manufacturer = dimm.get('dimm_manufacturer', None) - manufacturer = KNOWN_RAM_VENDOR_IDS.get(manufacturer, 'Unknown') + manufacturer = KNOWN_RAM_VENDOR_IDS.get( + manufacturer, + f'Unknown ({manufacturer})') size = dimm.get('dimm_size', '0 GB') try: size = string_to_bytes(size, assume_binary=True)