Re: [libvirt] [PATCH] Fix device_del in JSON mode for QEMU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 16, 2010 at 11:53:06AM +0100, Daniel P. Berrange wrote:
> 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 |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
> index 001b32b..c3ed47c 100644
> --- a/src/qemu/qemu_monitor_json.c
> +++ b/src/qemu/qemu_monitor_json.c
> @@ -2021,7 +2021,7 @@ int qemuMonitorJSONDelDevice(qemuMonitorPtr mon,
>      virJSONValuePtr reply = NULL;
>  
>      cmd = qemuMonitorJSONMakeCommand("device_del",
> -                                     "s:config", devalias,
> +                                     "s:id", devalias,
>                                       NULL);
>      if (!cmd)
>          return -1;

  ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]