mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
rbd: fix typo in createVolume validation
Signed-off-by: Marton Natko <mnatko@transip.nl> Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
e1237f348f
commit
2fbca0d1e2
@ -74,7 +74,7 @@ func (cs *ControllerServer) validateVolumeReq(ctx context.Context, req *csi.Crea
|
|||||||
if value, ok := options["dataPool"]; ok && value == "" {
|
if value, ok := options["dataPool"]; ok && value == "" {
|
||||||
return status.Error(codes.InvalidArgument, "empty datapool name to provision volume from")
|
return status.Error(codes.InvalidArgument, "empty datapool name to provision volume from")
|
||||||
}
|
}
|
||||||
if value, ok := options["raodsNamespace"]; ok && value == "" {
|
if value, ok := options["radosNamespace"]; ok && value == "" {
|
||||||
return status.Error(codes.InvalidArgument, "empty namespace name to provision volume from")
|
return status.Error(codes.InvalidArgument, "empty namespace name to provision volume from")
|
||||||
}
|
}
|
||||||
if value, ok := options["volumeNamePrefix"]; ok && value == "" {
|
if value, ok := options["volumeNamePrefix"]; ok && value == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user