[pve-devel] [PATCH] remove <vmid>.fw file after lxc vm destroy

Alen Grizonic a.grizonic at proxmox.com
Wed Aug 19 10:34:52 CEST 2015


Related to Bugfix 603: vmid.fw file not deleted

Signed-off-by: Alen Grizonic <a.grizonic at proxmox.com>
---
 src/PVE/API2/LXC.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 0d373c7..d330e76 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -9,6 +9,7 @@ use PVE::Exception qw(raise raise_param_exc);
 use PVE::INotify;
 use PVE::Cluster qw(cfs_read_file);
 use PVE::AccessControl;
+use PVE::Firewall;
 use PVE::Storage;
 use PVE::RESTHandler;
 use PVE::RPCEnvironment;
@@ -660,6 +661,7 @@ __PACKAGE__->register_method({
 
 	    PVE::LXC::destroy_lxc_container($storage_cfg, $vmid, $conf);
 	    PVE::AccessControl::remove_vm_access($vmid);
+	    PVE::Firewall::remove_vmfw_conf($vmid);
 	};
 
 	my $realcmd = sub { PVE::LXC::lock_container($vmid, 1, $code); };
-- 
2.1.4





More information about the pve-devel mailing list