bug 7162: made listZones by id work

status 7162: resolved fixed
This commit is contained in:
alena 2010-11-17 10:45:35 -08:00
parent f2c1291f6d
commit 59b07f8047
1 changed files with 2 additions and 2 deletions

View File

@ -1400,13 +1400,13 @@ public class ManagementServerImpl implements ManagementServer {
}
if (id != null) {
List<DataCenterVO> singleZone = new ArrayList<DataCenterVO>();
for (DataCenterVO zone : dcs) {
List<DataCenterVO> singleZone = new ArrayList<DataCenterVO>();
if (zone.getId() == id) {
singleZone.add(zone);
}
return singleZone;
}
return singleZone;
}
return dcs;
}