Skip to content

Commit

Permalink
fix resize when volume is not in first zone
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Cyvoct <[email protected]>
  • Loading branch information
Sh4d1 committed Sep 1, 2021
1 parent 80da80c commit c6e8c37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ func (d *controllerService) ControllerExpandVolume(ctx context.Context, req *csi

vol, err := d.scaleway.WaitForVolume(&instance.WaitForVolumeRequest{
VolumeID: volumeID,
Zone: volumeZone,
})
if err != nil {
return nil, status.Error(codes.Internal, err.Error())
Expand Down

0 comments on commit c6e8c37

Please sign in to comment.