[pve-devel] [PATCH 5/6] hotplug/unplug devices by default
Alexandre Derumier
aderumier at odiso.com
Tue Feb 19 10:22:10 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuServer.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 434afe3..669f2e5 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2519,7 +2519,7 @@ sub vm_deviceplug {
return 1;
}
- return 1 if !$conf->{hotplug};
+ return 1 if $conf->{hotplug} && $conf->{hotplug} == 0;
my $devices_list = vm_devices_list($vmid);
return 1 if defined($devices_list->{$deviceid});
@@ -2586,7 +2586,7 @@ sub vm_deviceunplug {
return 1;
}
- return 1 if!$conf->{hotplug};
+ return 1 if $conf->{hotplug} && $conf->{hotplug} == 0;
my $devices_list = vm_devices_list($vmid);
return 1 if !defined($devices_list->{$deviceid});
--
1.7.10.4
More information about the pve-devel
mailing list