diff --git a/components/accelerator/nvidia/sxid/helper.go b/components/accelerator/nvidia/sxid/helper.go index e305cec4..202711fe 100644 --- a/components/accelerator/nvidia/sxid/helper.go +++ b/components/accelerator/nvidia/sxid/helper.go @@ -86,8 +86,8 @@ func EvolveHealthyState(events []components.Event) (ret components.State) { reason = "SXIDComponent is healthy" } else { reason = fmt.Sprintf("sxid %d detected by %s", lastSXidErr.SXid, lastSXidErr.DataSource) - if lastSuggestedAction != nil && len(lastSuggestedAction.RepairActions) > 0 { - stateError += fmt.Sprintf("Suggestion: %s", lastSuggestedAction.RepairActions[0]) + if sxidDetail, ok := nvidia_query_sxid.GetDetail(int(lastSXidErr.SXid)); ok { + stateError = sxidDetail.Name } } return components.State{ diff --git a/components/accelerator/nvidia/xid/helper.go b/components/accelerator/nvidia/xid/helper.go index 7103a045..5e5708a1 100644 --- a/components/accelerator/nvidia/xid/helper.go +++ b/components/accelerator/nvidia/xid/helper.go @@ -86,8 +86,8 @@ func EvolveHealthyState(events []components.Event) (ret components.State) { reason = "XIDComponent is healthy" } else { reason = fmt.Sprintf("xid %d detected by %s", lastXidErr.Xid, lastXidErr.DataSource) - if lastSuggestedAction != nil && len(lastSuggestedAction.RepairActions) > 0 { - stateError += fmt.Sprintf("Suggestion: %s", lastSuggestedAction.RepairActions[0]) + if xidDetail, ok := nvidia_query_xid.GetDetail(int(lastXidErr.Xid)); ok { + stateError = xidDetail.Name } } return components.State{