Skip to content

Commit 950bd65

Browse files
authored
Merge pull request #1269 from ashrayjain/patch-1
Fix check for gid being less than 0
2 parents e5cd767 + d0dfefa commit 950bd65

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)