From 8cd00f4b243ea33ea91d029189ff63f9d404c040 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 8 May 2014 15:45:25 +0200 Subject: [PATCH] do not ignore errors on tap_unplug --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index e7d49d9b..ca8cdd51 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -839,7 +839,7 @@ my $vmconfig_update_net = sub { } if(($newnet->{bridge} ne $oldnet->{bridge}) || ($newnet->{tag} ne $oldnet->{tag}) || ($newnet->{firewall} ne $oldnet->{firewall})){ - eval{PVE::Network::tap_unplug($iface, $oldnet->{bridge}, $oldnet->{tag}, $oldnet->{firewall});}; + PVE::Network::tap_unplug($iface); PVE::Network::tap_plug($iface, $newnet->{bridge}, $newnet->{tag}, $newnet->{firewall}); }