]> git.proxmox.com Git - qemu-server.git/commit
return error from guest-agent
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 20 Feb 2018 08:43:44 +0000 (09:43 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Feb 2018 08:56:59 +0000 (09:56 +0100)
commit1928c2018826f30dc7d8166df8ba0f50402672a8
treedd9e7953df4639915048378ecbea3092923a51fe
parent5667cc55fed6d587d5dc79cb1fa16c9e2ac34c27
return error from guest-agent

in case of e.g. a non-existant guest-agent command, it would return
{ error: {someerrorobject} }
but we did only include the 'return' property

in case we do not get any and the error property is set,
return that

i looked at all the paths were we use the QMPClient, and either
we have our own callback for the result,
or we do not rely on the result being empty upon an error, so this
should not break anything

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