Skip to content

Commit

Permalink
Merge pull request #1269 from ashrayjain/patch-1
Browse files Browse the repository at this point in the history
Fix check for gid being less than 0
  • Loading branch information
k8s-ci-robot committed Feb 9, 2024
2 parents e5cd767 + d0dfefa commit 950bd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, "Failed to parse invalid %v: %v", Gid, err)
}
if uid < 0 {
if gid < 0 {
return nil, status.Errorf(codes.InvalidArgument, "%v must be greater or equal than 0", Gid)
}
}
Expand Down

0 comments on commit 950bd65

Please sign in to comment.