applied > -----Original Message----- > From: [email protected] [mailto:pve-devel- > [email protected]] On Behalf Of Alexandre Derumier > Sent: Dienstag, 19. Februar 2013 12:03 > To: [email protected] > Subject: [pve-devel] [PATCH] fix tablet hotplug > > > Signed-off-by: Alexandre Derumier <[email protected]> > --- > PVE/API2/Qemu.pm | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index > daada76..ee02467 100644 > --- a/PVE/API2/Qemu.pm > +++ b/PVE/API2/Qemu.pm > @@ -656,9 +656,11 @@ my $vmconfig_delete_option = sub { > $unplugwarning = "<br>verify that your guest support acpi hotplug"; > } > > - die "error hot-unplug $opt $unplugwarning" if > !PVE::QemuServer::vm_deviceunplug($vmid, $conf, $opt); > - > - PVE::QemuServer::vm_deviceplug(undef, $conf, $vmid, $opt) if $opt eq > 'tablet'; > + if($opt eq 'tablet'){ > + PVE::QemuServer::vm_deviceplug(undef, $conf, $vmid, $opt); > + }else{ > + die "error hot-unplug $opt $unplugwarning" if > !PVE::QemuServer::vm_deviceunplug($vmid, $conf, $opt); > + } > > if ($isDisk) { > my $drive = PVE::QemuServer::parse_drive($opt, $conf->{$opt}); > -- > 1.7.10.4 > > _______________________________________________ > pve-devel mailing list > [email protected] > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
_______________________________________________ pve-devel mailing list [email protected] http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
