From a4c781b4d597c57bc3a232d565c1f096cd6847a5 Mon Sep 17 00:00:00 2001 From: rainzm Date: Tue, 27 Oct 2020 21:19:40 +0800 Subject: [PATCH] fix(esxi): no callback in uploadHandler --- pkg/esxi/handler/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/esxi/handler/handlers.go b/pkg/esxi/handler/handlers.go index dae2ba362e..84831030d5 100644 --- a/pkg/esxi/handler/handlers.go +++ b/pkg/esxi/handler/handlers.go @@ -75,7 +75,7 @@ func uploadHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) httperrors.MissingParameterError(w, "miss disk") return } - hostutils.DelayTask(ctx, esxi.EsxiAgent.AgentStorage.SaveToGlance, disk) + hostutils.DelayTaskWithoutReqctx(ctx, esxi.EsxiAgent.AgentStorage.SaveToGlance, disk) hostutils.ResponseOk(ctx, w) }