Skip to content

Commit d0dfefa

Browse files
authored
Fix check for gid being less than 0
We were checking the uid instead of the gid when we check the configured value against 0
1 parent e5cd767 commit d0dfefa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/driver/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest)
183183
if err != nil {
184184
return nil, status.Errorf(codes.InvalidArgument, "Failed to parse invalid %v: %v", Gid, err)
185185
}
186-
if uid < 0 {
186+
if gid < 0 {
187187
return nil, status.Errorf(codes.InvalidArgument, "%v must be greater or equal than 0", Gid)
188188
}
189189
}

0 commit comments

Comments
 (0)