mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
RBD: Remove dead code
during volume creation we are validating that volume name cannot be empty,removing this check as we are not going to hit this case Fixes: #204 Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
This commit is contained in:
parent
8e41a8a7ed
commit
e91a59d2f9
@ -99,9 +99,6 @@ func parseVolCreateRequest(req *csi.CreateVolumeRequest) (*rbdVolume, error) {
|
||||
// Generating Volume Name and Volume ID, as according to CSI spec they MUST be different
|
||||
volName := req.GetName()
|
||||
uniqueID := uuid.NewUUID().String()
|
||||
if len(volName) == 0 {
|
||||
volName = rbdVol.Pool + "-dynamic-pvc-" + uniqueID
|
||||
}
|
||||
rbdVol.VolName = volName
|
||||
volumeID := "csi-rbd-vol-" + uniqueID
|
||||
rbdVol.VolID = volumeID
|
||||
|
Loading…
Reference in New Issue
Block a user