From c13e347595e301068f220c49c004fb20c0a2e880 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Fri, 14 Jul 2023 10:54:52 +0200 Subject: [PATCH] smc: lower required timeout value for update --- providers/supermicro/firmware.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/supermicro/firmware.go b/providers/supermicro/firmware.go index 0c6a7fa7..4e94ba97 100644 --- a/providers/supermicro/firmware.go +++ b/providers/supermicro/firmware.go @@ -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()) }