mirror of https://github.com/apache/cloudstack.git
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:
parent
7a0ad69b89
commit
64210bd16d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue