From 14cab243bbdd6cd678ca87ce57322a34ccccda58 Mon Sep 17 00:00:00 2001 From: Abhijit Mukherjee Date: Wed, 28 Feb 2024 12:23:44 +0530 Subject: [PATCH] Addressed review comments w.r.t controller-runtime setlogger and [nits] Signed-off-by: Abhijit Mukherjee --- pkg/blockstorage/vmware/vmware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/blockstorage/vmware/vmware.go b/pkg/blockstorage/vmware/vmware.go index 9e40a2458ae..71ac4c2f4c2 100644 --- a/pkg/blockstorage/vmware/vmware.go +++ b/pkg/blockstorage/vmware/vmware.go @@ -257,7 +257,7 @@ var reVslmSyncFaultFatal = regexp.MustCompile("Change tracking invalid or disk i func (p *FcdProvider) SnapshotCreate(ctx context.Context, volume blockstorage.Volume, tags map[string]string) (*blockstorage.Snapshot, error) { var res types.AnyType description := generateSnapshotDescription(tags) - err := wait.PollUntilContextTimeout(ctx, time.Second, defaultRetryLimit, false, func(innerCtx context.Context) (bool, error) { + err := wait.PollUntilContextTimeout(ctx, time.Second, defaultRetryLimit, false, func(context.Context) (bool, error) { timeOfCreateSnapshotCall := time.Now() var createErr error res, createErr = p.createSnapshotAndWaitForCompletion(volume, ctx, description)