Skip to content

Commit 7ef24bb

Browse files
committed
Add return fix
1 parent 04061b9 commit 7ef24bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sonic_platform_base/redfish_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,10 @@ def redfish_api_trigger_bmc_debug_log_dump(self):
12171217
else:
12181218
ret = RedfishClient.ERR_CODE_GENERIC_ERROR
12191219
return (ret, (task_id, f'Error: Return status is {status}'))
1220+
else:
1221+
ret = RedfishClient.ERR_CODE_UNEXPECTED_RESPONSE
1222+
err_msg = "Missing 'error' or 'TaskStatus' field in response"
1223+
return (ret, (task_id, f'Error: {err_msg}'))
12201224

12211225
'''
12221226
Get BMC debug log dump file

0 commit comments

Comments
 (0)