Fixed error message

This commit is contained in:
alena 2011-08-12 18:16:21 -07:00
parent 716e305355
commit 9253860347
2 changed files with 2 additions and 2 deletions

View File

@ -2641,7 +2641,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
@Override
public String getIpInNetwork(long vmId, long networkId) {
Nic guestNic = getNicInNetwork(vmId, networkId);
assert (guestNic != null && guestNic.getIp4Address() != null) : "Vm doesn't belong to network associated with ipAddress or ip4 address is null...how is it possible?";
assert (guestNic != null && guestNic.getIp4Address() != null) : "Vm doesn't belong to network associated with ipAddress or ip4 address is null?";
return guestNic.getIp4Address();
}

View File

@ -288,7 +288,7 @@ public class FirewallManagerImpl implements FirewallService, FirewallManager, Ma
}
Network network = _networkMgr.getNetwork(networkId);
assert network != null : "Can't create port forwarding rule as network associated with public ip address is null...how is it possible?";
assert network != null : "Can't create port forwarding rule as network associated with public ip address is null?";
if (portStart != null && !NetUtils.isValidPort(portStart)) {
throw new InvalidParameterValueException("publicPort is an invalid value: " + portStart);