Skip to content

Commit fc357a9

Browse files
robinschneiderDuciwuci
authored andcommitted
add missing context
1 parent ab228b6 commit fc357a9

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
@@ -231,7 +231,7 @@ func (os *OpenStack) AttachVolume(ctx context.Context, instanceID, volumeID stri
231231
}
232232

233233
//redundant waitDiskAttached, workaround for raise condition in backend
234-
err = os.WaitDiskAttached(instanceID, volumeID)
234+
err = os.WaitDiskAttached(ctx, instanceID, volumeID)
235235
if err != nil {
236236
return "", err
237237
}
@@ -298,9 +298,9 @@ func (os *OpenStack) WaitVolumeTargetStatus(ctx context.Context, volumeID string
298298
}
299299

300300
// WaitVolumeTargetStatusWithCustomBackoff waits for volume to be in target state with custom backoff
301-
func (os *OpenStack) WaitVolumeTargetStatusWithCustomBackoff(volumeID string, tStatus []string, backoff *wait.Backoff) error {
301+
func (os *OpenStack) WaitVolumeTargetStatusWithCustomBackoff(ctx context.Context, volumeID string, tStatus []string, backoff *wait.Backoff) error {
302302
waitErr := wait.ExponentialBackoff(*backoff, func() (bool, error) {
303-
vol, err := os.GetVolume(volumeID)
303+
vol, err := os.GetVolume(ctx, volumeID)
304304
if err != nil {
305305
return false, err
306306
}

0 commit comments

Comments
 (0)