mirror of https://github.com/apache/cloudstack.git
Vm expunge: when delete port forwarding rules as a part of vm expunge, do searchIncludingRemoved for the vm because vm can be marked for removal already.
This commit is contained in:
parent
e299402243
commit
6e399aa698
|
|
@ -377,7 +377,7 @@ public class RulesManagerImpl implements RulesManager, RulesService, Manager {
|
|||
|
||||
@Override
|
||||
public boolean revokePortForwardingRule(long vmId) {
|
||||
UserVmVO vm = _vmDao.findById(vmId);
|
||||
UserVmVO vm = _vmDao.findByIdIncludingRemoved(vmId);
|
||||
if (vm == null) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue