[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
+3 -1
Просмотреть файл
@@ -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 #