mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +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