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:
alena 2011-02-07 09:54:59 -08:00
parent e299402243
commit 6e399aa698
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}