]> git.proxmox.com Git - qemu-server.git/commitdiff
fix #2275: die on invalid sendkey
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 15 Jul 2019 12:35:29 +0000 (14:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Jul 2019 16:48:30 +0000 (18:48 +0200)
sendkey does not return anything if it is succesful and the error otherwise

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer.pm

index c852e04d18698c487a667c88b30c5f89afb23b29..582423e0555028f4f9aa6c76c45eb204a3169cae 100644 (file)
@@ -5885,7 +5885,8 @@ sub vm_sendkey {
        my $conf = PVE::QemuConfig->load_config($vmid);
 
        # there is no qmp command, so we use the human monitor command
-       vm_human_monitor_command($vmid, "sendkey $key");
+       my $res = vm_human_monitor_command($vmid, "sendkey $key");
+       die $res if $res ne '';
     });
 }