From cd709e93d13dc5ad4bda44a10f6b87d6f07a902f Mon Sep 17 00:00:00 2001 From: Bindhiya Kanangot Balakrishnan Date: Fri, 6 Jun 2025 13:51:58 -0500 Subject: [PATCH] [SWDEV-512393] Print keys of lists in custom_dump The custom_dump function was not printing list's key and so static numa was not displaying list keys CPU affinity and Socket affinity. Updated custom_dump to print the keys. Signed-off-by: Bindhiya Kanangot Balakrishnan [ROCm/amdsmi commit: 6fbda160985365bf69d39357a6b2d85952bfd0b0] --- projects/amdsmi/amdsmi_cli/amdsmi_logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_logger.py b/projects/amdsmi/amdsmi_cli/amdsmi_logger.py index 8b4697582c..fdf4f8d85c 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_logger.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_logger.py @@ -325,7 +325,7 @@ class AMDSMILogger(): elif isinstance(value, list): if not value: yaml_string += " " * indent + f"{key}: N/A\n" - elif isinstance(value, dict): + else: yaml_string += " " * indent + f"{key}:\n" for item in value: if isinstance(item, dict):