Skip to content

Commit eee720c

Browse files
committed
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>
1 parent f0a77d6 commit eee720c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎server/src/com/cloud/network/NetworkModelImpl.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,11 +1457,11 @@ public void checkNetworkPermissions(Account owner, Network network) {
14571457
if (network.getGuestType() != Network.GuestType.Shared) {
14581458
List<NetworkVO> networkMap = _networksDao.listBy(owner.getId(), network.getId());
14591459
if (networkMap == null || networkMap.isEmpty()) {
1460-
throw new PermissionDeniedException("Unable to use network with id= " + network.getId() + ", permission denied");
1460+
throw new PermissionDeniedException("Unable to use network with id= " + network.getUuid() + ", permission denied");
14611461
}
14621462
} else {
14631463
if (!isNetworkAvailableInDomain(network.getId(), owner.getDomainId())) {
1464-
throw new PermissionDeniedException("Shared network id=" + network.getId() + " is not available in domain id=" + owner.getDomainId());
1464+
throw new PermissionDeniedException("Shared network id=" + network.getUuid() + " is not available in domain id=" + owner.getDomainId());
14651465
}
14661466
}
14671467
}

0 commit comments

Comments
 (0)