Skip to content

Commit 017e8a4

Browse files
committed
Not Returning Infeasible If Tags Were Modified
1 parent 7ede9a3 commit 017e8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/driver/controller_modify_volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func executeModifyVolumeRequest(c cloud.Cloud) func(string, modifyVolumeRequest)
151151
if err != nil {
152152
switch {
153153
case errors.Is(err, cloud.ErrInvalidArgument):
154-
return 0, status.Errorf(codes.InvalidArgument, "Could not modify volume (invalid argument) %q: %v", volumeID, err)
154+
return 0, status.Errorf(codes.Internal, "Could not modify volume (invalid argument) %q: %v", volumeID, err)
155155
case errors.Is(err, cloud.ErrNotFound):
156156
return 0, status.Errorf(codes.NotFound, "Could not modify volume (not found) %q: %v", volumeID, err)
157157
case errors.Is(err, cloud.ErrLimitExceeded):

0 commit comments

Comments
 (0)