fix bug #603: vmid.fw file not deleted

Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
This commit is contained in:
Alen Grizonic 2015-08-19 10:33:05 +02:00 committed by Dietmar Maurer
parent d662790a14
commit e9abcde681

View File

@ -19,6 +19,7 @@ use PVE::RPCEnvironment;
use PVE::AccessControl; use PVE::AccessControl;
use PVE::INotify; use PVE::INotify;
use PVE::Network; use PVE::Network;
use PVE::Firewall;
use PVE::API2::Firewall::VM; use PVE::API2::Firewall::VM;
use PVE::HA::Config; use PVE::HA::Config;
@ -1149,6 +1150,8 @@ __PACKAGE__->register_method({
PVE::QemuServer::vm_destroy($storecfg, $vmid, $skiplock); PVE::QemuServer::vm_destroy($storecfg, $vmid, $skiplock);
PVE::AccessControl::remove_vm_access($vmid); PVE::AccessControl::remove_vm_access($vmid);
PVE::Firewall::remove_vmfw_conf($vmid);
}; };
return $rpcenv->fork_worker('qmdestroy', $vmid, $authuser, $realcmd); return $rpcenv->fork_worker('qmdestroy', $vmid, $authuser, $realcmd);