From: Daniel P. Berrange Date: Thu, 15 Apr 2010 11:17:29 +0000 (+0100) Subject: Fix device_del in JSON mode for QEMU X-Git-Tag: v0.8.1~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e699a82474b6433772b6f599017291563c63cfcd;p=thirdparty%2Flibvirt.git Fix device_del in JSON mode for QEMU 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 --- diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index de59b2b9ee..cde9899b11 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -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;