qemu: monitor: Use qemuMonitorJSONBlockJobError in qemuMonitorJSONDrivePivot

The API deals with a block job so use the common error reporting
function for it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
Peter Krempa 2018-08-14 13:04:18 +02:00
parent e94a4053dc
commit 29dd778d16

View File

@ -4893,7 +4893,7 @@ qemuMonitorJSONDrivePivot(qemuMonitorPtr mon,
if (qemuMonitorJSONCommand(mon, cmd, &reply) < 0)
goto cleanup;
if (qemuMonitorJSONCheckError(cmd, reply) < 0)
if (qemuMonitorJSONBlockJobError(cmd, reply, device) < 0)
goto cleanup;
ret = 0;