mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-1702: Changed getId to getUuid in an exception message
string. This doesn't resolve the bug in question, but does fix the specific message that was reported as the origin of the bug. Signed-off-by: Chip Childers <chip.childers@gmail.com>
This commit is contained in:
parent
f0a77d67cc
commit
eee720ceaa
@ -1457,11 +1457,11 @@ public class NetworkModelImpl extends ManagerBase implements NetworkModel {
|
||||
if (network.getGuestType() != Network.GuestType.Shared) {
|
||||
List<NetworkVO> networkMap = _networksDao.listBy(owner.getId(), network.getId());
|
||||
if (networkMap == null || networkMap.isEmpty()) {
|
||||
throw new PermissionDeniedException("Unable to use network with id= " + network.getId() + ", permission denied");
|
||||
throw new PermissionDeniedException("Unable to use network with id= " + network.getUuid() + ", permission denied");
|
||||
}
|
||||
} else {
|
||||
if (!isNetworkAvailableInDomain(network.getId(), owner.getDomainId())) {
|
||||
throw new PermissionDeniedException("Shared network id=" + network.getId() + " is not available in domain id=" + owner.getDomainId());
|
||||
throw new PermissionDeniedException("Shared network id=" + network.getUuid() + " is not available in domain id=" + owner.getDomainId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user