[SWDEV-566465] Fix json output for amdsmi reset (#2043)

Fixed json output for reset command.

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
这个提交包含在:
Bindhiya Kanangot Balakrishnan
2025-12-01 13:30:32 -06:00
提交者 GitHub
父节点 29a7591791
当前提交 a627c12501
@@ -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 #