Skip to content

Commit 00fcd9f

Browse files
sedukullDaanHoogland
authored andcommitted
Added fix for CLOUDSTACK-6548
Signed-off-by: santhosh <santhosh.edukulla@gmail.com> Signed-off-by: Daan Hoogland <daan@onecht.net> Conflicts: server/src/com/cloud/network/NetworkServiceImpl.java
1 parent 5ba5da3 commit 00fcd9f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

server/src/com/cloud/network/NetworkServiceImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3973,7 +3973,11 @@ public Network doInTransaction(TransactionStatus status) throws ResourceAllocati
39733973
//create Guest network
39743974
privateNetwork = _networkMgr.createGuestNetwork(ntwkOffFinal.getId(), networkName, displayText, gateway, cidr, uriString, null, owner, null, pNtwk,
39753975
pNtwk.getDataCenterId(), ACLType.Account, null, vpcId, null, null, true, null);
3976-
s_logger.debug("Created private network " + privateNetwork);
3976+
if (privateNetwork != null) {
3977+
s_logger.debug("Successfully created guest network " + privateNetwork);
3978+
} else {
3979+
throw new CloudRuntimeException("Creating guest network failed");
3980+
}
39773981
} else {
39783982
s_logger.debug("Private network already exists: " + privateNetwork);
39793983
//Do not allow multiple private gateways with same Vlan within a VPC

0 commit comments

Comments
 (0)