]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: qemuMonitorJSONEjectMedia(): Fix arguments' type
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 9 Sep 2010 21:05:04 +0000 (18:05 -0300)
committerEric Blake <eblake@redhat.com>
Thu, 9 Sep 2010 22:29:40 +0000 (16:29 -0600)
QMP in QEMU 0.13 has been fixed to enforce type correctness,
this means that boolean types must be true or false, not
integers.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
src/qemu/qemu_monitor_json.c

index bc19f2384089e9716bc47b609bd139c43e1a518e..d3ab25ff1225f82acd282a5624d48dec5a164550 100644 (file)
@@ -1353,7 +1353,7 @@ int qemuMonitorJSONEjectMedia(qemuMonitorPtr mon,
     int ret;
     virJSONValuePtr cmd = qemuMonitorJSONMakeCommand("eject",
                                                      "s:device", devname,
-                                                     "i:force", 0,
+                                                     "b:force", 0,
                                                      NULL);
     virJSONValuePtr reply = NULL;
     if (!cmd)