From b64ddb0141fbb72e6688e7d04dac674d8fb2bf7f Mon Sep 17 00:00:00 2001 From: umagnus Date: Thu, 15 Aug 2024 02:18:21 +0000 Subject: [PATCH] fix volume cloning sas token --- pkg/blob/controllerserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/blob/controllerserver.go b/pkg/blob/controllerserver.go index 737b92730..2ff3c3a02 100644 --- a/pkg/blob/controllerserver.go +++ b/pkg/blob/controllerserver.go @@ -799,7 +799,7 @@ func (d *Driver) copyBlobContainer(ctx context.Context, req *csi.CreateVolumeReq } timeoutFunc := func() error { _, percent, _ := d.azcopy.GetAzcopyJob(dstContainerName, authAzcopyEnv) - return fmt.Errorf("timeout waiting for copy blob container %s to %s complete, current copy percent: %s%%", srcPath, dstContainerName, percent) + return fmt.Errorf("timeout waiting for copy blob container %s to %s complete, current copy percent: %s%%", srcContainerName, dstContainerName, percent) } copyErr := util.WaitUntilTimeout(time.Duration(d.waitForAzCopyTimeoutMinutes)*time.Minute, execFunc, timeoutFunc) if copyErr != nil {