]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: monitor: Use qemuMonitorJSONBlockJobError in qemuMonitorJSONDrivePivot
authorPeter Krempa <pkrempa@redhat.com>
Tue, 14 Aug 2018 11:04:18 +0000 (13:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 24 Aug 2018 11:52:44 +0000 (13:52 +0200)
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>
src/qemu/qemu_monitor_json.c

index 2af48817029b2d8dec7e3be9b439b5423bff3666..abcb60d3a12134bd3e1d7b277e400ea913a485af 100644 (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;