From: Wolfgang Link Date: Tue, 10 Feb 2015 11:59:22 +0000 (+0100) Subject: bug 597: hotplug fix X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=8ead5ec7dc342e991f2e8cef3e6b6afcba549250;p=qemu-server.git bug 597: hotplug fix wrap params in dopple quotes, so spaces will accept. Signed-off-by: Wolfgang Link --- diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 556bbb75..59441e19 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3384,7 +3384,7 @@ sub qemu_driveadd { my ($storecfg, $vmid, $device) = @_; my $drive = print_drive_full($storecfg, $vmid, $device); - my $ret = vm_human_monitor_command($vmid, "drive_add auto $drive"); + my $ret = vm_human_monitor_command($vmid, "drive_add auto \"$drive\""); # If the command succeeds qemu prints: "OK" return 1 if $ret =~ m/OK/s;