Skip to content

Commit

Permalink
smc: lower required timeout value for update
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Jul 14, 2023
1 parent 725e651 commit c13e347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/supermicro/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func (c *Client) FirmwareInstall(ctx context.Context, component, applyAt string,
size = finfo.Size()
}

// expect atleast 30 minutes left in the deadline to proceed with the update
// expect atleast 10 minutes left in the deadline to proceed with the update
d, _ := ctx.Deadline()
if time.Until(d) < 30*time.Minute {
if time.Until(d) < 10*time.Minute {
return "", errors.New("remaining context deadline insufficient to perform update: " + time.Until(d).String())
}

Expand Down

0 comments on commit c13e347

Please sign in to comment.