Skip to content

Commit d693759

Browse files
robinschneiderDuciwuci
authored andcommitted
add missing context
1 parent e4a0146 commit d693759

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/csi/cinder/openstack/openstack_volumes.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (os *OpenStack) AttachVolume(ctx context.Context, instanceID, volumeID stri
238238
}
239239

240240
//redundant waitDiskAttached, workaround for raise condition in backend
241-
err = os.WaitDiskAttached(instanceID, volumeID)
241+
err = os.WaitDiskAttached(ctx, instanceID, volumeID)
242242
if err != nil {
243243
return "", err
244244
}
@@ -305,9 +305,9 @@ func (os *OpenStack) WaitVolumeTargetStatus(ctx context.Context, volumeID string
305305
}
306306

307307
// WaitVolumeTargetStatusWithCustomBackoff waits for volume to be in target state with custom backoff
308-
func (os *OpenStack) WaitVolumeTargetStatusWithCustomBackoff(volumeID string, tStatus []string, backoff *wait.Backoff) error {
308+
func (os *OpenStack) WaitVolumeTargetStatusWithCustomBackoff(ctx context.Context, volumeID string, tStatus []string, backoff *wait.Backoff) error {
309309
waitErr := wait.ExponentialBackoff(*backoff, func() (bool, error) {
310-
vol, err := os.GetVolume(volumeID)
310+
vol, err := os.GetVolume(ctx, volumeID)
311311
if err != nil {
312312
return false, err
313313
}

0 commit comments

Comments
 (0)