]> git.proxmox.com Git - qemu-server.git/commitdiff
fix bug #603: vmid.fw file not deleted
authorAlen Grizonic <a.grizonic@proxmox.com>
Wed, 19 Aug 2015 08:33:05 +0000 (10:33 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Aug 2015 13:30:00 +0000 (15:30 +0200)
Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
PVE/API2/Qemu.pm

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