fix empth data
@@ -348,7 +348,7 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
kSize := fmt.Sprintf("%d", req.GetCapacityRange().GetRequiredBytes()/1024)
// if quotaRootPath configed in storageclass, use it first;
- if value, ok := parameters[QuotaRootPath]; ok && value != "" {
+ if value, ok := parameters[QuotaRootPath]; ok && value != "" && storageSelected == "" {
storageSelected = value
}
log.Infof("CreateVolume: create quotaPath type volume %s with node(%s), rootPath(%s), size(%s)KB", req.Name, nodeSelected, storageSelected, kSize)
