mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 08:40:23 +00:00
rbd: fix typo in createVolume validation
Signed-off-by: Marton Natko <mnatko@transip.nl>
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 2fbca0d1e2
)
This commit is contained in:
parent
764e33f249
commit
d999d9db0c
@ -74,7 +74,7 @@ func (cs *ControllerServer) validateVolumeReq(ctx context.Context, req *csi.Crea
|
||||
if value, ok := options["dataPool"]; ok && value == "" {
|
||||
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")
|
||||
}
|
||||
if value, ok := options["volumeNamePrefix"]; ok && value == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user