mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Zone check in createNetwork for Bug 6873 - disable/enable mode for clusters (and pods and zones and hosts)
This commit is contained in:
parent
923f562aa8
commit
50244b79ab
@ -1463,9 +1463,12 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
||||
}
|
||||
|
||||
// Check if zone exists
|
||||
DataCenterVO zone = _dcDao.findById(zoneId);
|
||||
if (zoneId == null) {
|
||||
throw new InvalidParameterValueException("Please specify a valid zone.");
|
||||
}
|
||||
|
||||
if (zoneId == null || zone == null) {
|
||||
DataCenterVO zone = _dcDao.findById(zoneId);
|
||||
if (zone == null) {
|
||||
throw new InvalidParameterValueException("Please specify a valid zone.");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user