Skip to content

Commit

Permalink
adds condition to check for internal error on HPE iLO5 #130
Browse files Browse the repository at this point in the history
bb-Ricardo committed Aug 28, 2024
1 parent 284d176 commit 83b4a57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cr_module/bmc.py
Original file line number Diff line number Diff line change
@@ -44,7 +44,8 @@ def get_bmc_info_generic(redfish_url):
plugin_object = PluginData()
view_response = plugin_object.rf.get_view(f"{redfish_url}{plugin_object.rf.vendor_data.expand_string}")

if view_response.get("error"):
if (view_response.get("error") or
"InternalError" in (grab(view_response, "@Message.ExtendedInfo/0/MessageId", "/") or "")):
plugin_object.add_data_retrieval_error(Manager, view_response, redfish_url)
return

0 comments on commit 83b4a57

Please sign in to comment.