Merge pull request #210 from Madhu-1/remove-check

RBD: Remove dead code
This commit is contained in:
Róbert Vašek 2019-02-19 15:32:06 +01:00 committed by GitHub
commit 5cebdf1fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 // Generating Volume Name and Volume ID, as according to CSI spec they MUST be different
volName := req.GetName() volName := req.GetName()
uniqueID := uuid.NewUUID().String() uniqueID := uuid.NewUUID().String()
if len(volName) == 0 {
volName = rbdVol.Pool + "-dynamic-pvc-" + uniqueID
}
rbdVol.VolName = volName rbdVol.VolName = volName
volumeID := "csi-rbd-vol-" + uniqueID volumeID := "csi-rbd-vol-" + uniqueID
rbdVol.VolID = volumeID rbdVol.VolID = volumeID