Skip to content

Commit

Permalink
Enable password enhancement for manager reset resource (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
taohe1012 authored Oct 25, 2024
1 parent 734b5e1 commit 631361f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion redfish/provider/resource_redfish_manager_reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,15 @@ func (r *managerResetResource) Create(ctx context.Context, req resource.CreateRe
service = api.Service
defer api.Logout()

activeServer := (plan.RedfishServer)[0]
if err := getActiveAliasRedfishServer(r.p, &activeServer); err != nil {
resp.Diagnostics.AddError("Error while getting active server", err.Error())
return
}
// Check iDRAC status
checker := ServerStatusChecker{
Service: service,
Endpoint: (plan.RedfishServer)[0].Endpoint.ValueString(),
Endpoint: activeServer.Endpoint.ValueString(),
Interval: defaultCheckInterval,
Timeout: defaultCheckTimeout,
}
Expand Down

0 comments on commit 631361f

Please sign in to comment.