mirror of https://github.com/apache/cloudstack.git
bug 7162: made listZones by id work
status 7162: resolved fixed
This commit is contained in:
parent
f2c1291f6d
commit
59b07f8047
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue