bug 6010: Fixing the list volumes issue, now we filter volumes based on the template type and not based on the names

status 6010: resolved fixed
This commit is contained in:
abhishek 2010-08-30 11:18:43 -07:00
parent 7a0ad69b89
commit 64210bd16d
1 changed files with 8 additions and 2 deletions

View File

@ -5648,8 +5648,14 @@ public class ManagementServerImpl implements ManagementServer {
for(VolumeVO v:allVolumes)
{
VMTemplateVO template = _templateDao.findById(v.getTemplateId());
if(!template.getUniqueName().equalsIgnoreCase("routing"))
returnableVolumes.add(v);
if(template!=null && template.getUniqueName().equalsIgnoreCase("routing"))
{
//do nothing
}
else
{
returnableVolumes.add(v);
}
}
return returnableVolumes;