mirror of https://github.com/apache/cloudstack.git
server: remove resource tags for disassociated public ip (#6642)
Fixes #6620 Remove resource tags when public IP is disassociated
This commit is contained in:
parent
1fd1f0626a
commit
44e600e2fc
|
|
@ -1101,6 +1101,7 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService, C
|
|||
boolean success = _ipAddrMgr.disassociatePublicIpAddress(ipAddressId, userId, caller);
|
||||
|
||||
if (success) {
|
||||
_resourceTagDao.removeByIdAndType(ipAddressId, ResourceObjectType.PublicIpAddress);
|
||||
if (guestNetwork != null) {
|
||||
NetworkOffering offering = _entityMgr.findById(NetworkOffering.class, guestNetwork.getNetworkOfferingId());
|
||||
Long vmId = ipVO.getAssociatedWithVmId();
|
||||
|
|
|
|||
Loading…
Reference in New Issue