From a627c12501e8e12e86a9134d2f7d0151b4804c55 Mon Sep 17 00:00:00 2001 From: Bindhiya Kanangot Balakrishnan Date: Mon, 1 Dec 2025 13:30:32 -0600 Subject: [PATCH] [SWDEV-566465] Fix json output for amdsmi reset (#2043) Fixed json output for reset command. Signed-off-by: Bindhiya Kanangot Balakrishnan --- projects/amdsmi/amdsmi_cli/amdsmi_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py index 232c200b1d..6d6107cce5 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py @@ -5576,9 +5576,11 @@ class AMDSMICommands(): raise PermissionError('Command requires elevation') from e final_output[f"ppt{current_sensor_num}"] = f"[{e.get_error_info(detailed=False)}] Unable to reset cap to default power cap" self.logger.store_output(args.gpu, 'powercap', final_output) + if multiple_devices: + self.logger.store_multiple_device_output() + return self.logger.print_output() self.logger.clear_multiple_devices_output() - return ####################### # BM commands - END #