]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix device_del in JSON mode for QEMU
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 15 Apr 2010 11:17:29 +0000 (12:17 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 19 Apr 2010 11:11:17 +0000 (12:11 +0100)
The 'device_del' command expects a parameter called 'id' but we
were passing 'config'.

* src/qemu/qemu_monitor_json.c: Fix device_del command parameter

src/qemu/qemu_monitor_json.c

index de59b2b9ee636166bda4baad4e67046595cf2ad7..cde9899b11527e62959c10149ca1c24d6c8a5948 100644 (file)
@@ -1945,7 +1945,7 @@ int qemuMonitorJSONDelDevice(qemuMonitorPtr mon,
     virJSONValuePtr reply = NULL;
 
     cmd = qemuMonitorJSONMakeCommand("device_del",
-                                     "s:config", devalias,
+                                     "s:id", devalias,
                                      NULL);
     if (!cmd)
         return -1;