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
This commit is contained in:
Daniel P. Berrange 2010-04-15 12:17:29 +01:00
parent c35b5269af
commit e699a82474

View File

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