mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-03 04:26:09 +00:00
bug 597: hotplug fix
wrap params in dopple quotes, so spaces will accept. Signed-off-by: Wolfgang Link <w.link@proxmox.com>
This commit is contained in:
parent
51a6f637d2
commit
8ead5ec7dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user