Skip to content

Commit

Permalink
Enable password enhancement for certificate resource (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
taohe1012 authored Oct 14, 2024
1 parent d757792 commit 0a4df64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion redfish/provider/resource_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ func certutils(params CertUtilsParam) (ok bool, summary string, details string)
if err != nil {
return false, ServiceErrorMsg, err.Error()
}
activeServer := (*params.rserver)[0]
if err := getActiveAliasRedfishServer(params.pconfig, &activeServer); err != nil {
return false, "Error while getting active server", err.Error()
}
service := api.Service
defer api.Logout()
managers, err := service.Managers()
Expand All @@ -269,7 +273,7 @@ func certutils(params CertUtilsParam) (ok bool, summary string, details string)
// Check iDRAC status
checker := ServerStatusChecker{
Service: service,
Endpoint: (*params.rserver)[0].Endpoint.ValueString(),
Endpoint: activeServer.Endpoint.ValueString(),
Interval: defaultCheckInterval,
Timeout: defaultCheckTimeout,
}
Expand Down

0 comments on commit 0a4df64

Please sign in to comment.