CLOUDSTACK-4743: durning the accountCleanup, never attempt to release the public ips when the guest networks of the account failed to cleanup

This commit is contained in:
Alena Prokharchyk 2013-10-22 09:41:20 -07:00
parent 0f976fd328
commit 8685661339
1 changed files with 1 additions and 1 deletions

View File

@ -697,7 +697,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
}
}
if (vpcsDeleted) {
if (networksDeleted && vpcsDeleted) {
// release ip addresses belonging to the account
List<? extends IpAddress> ipsToRelease = _ipAddressDao.listByAccount(accountId);
for (IpAddress ip : ipsToRelease) {