[libvirt] [PATCH 01/18] qemuMonitorJSONGetVirtType: Fix error message
Eric Blake
eblake at redhat.com
Wed Oct 2 17:18:07 UTC 2013
On 10/02/2013 11:09 AM, Michal Privoznik wrote:
> When querying for kvm, we try to find 'enabled' field. Hence the error
> message should report we haven't found 'enabled' and not 'running'
> (which is not even in the reply). Probably a typo or copy-paste error.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> src/qemu/qemu_monitor_json.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
ACK.
>
> diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
> index 2d84161..fc57c00 100644
> --- a/src/qemu/qemu_monitor_json.c
> +++ b/src/qemu/qemu_monitor_json.c
> @@ -1300,7 +1300,7 @@ int qemuMonitorJSONGetVirtType(qemuMonitorPtr mon,
>
> if (virJSONValueObjectGetBoolean(data, "enabled", &val) < 0) {
> virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
> - _("info kvm reply missing 'running' field"));
> + _("info kvm reply missing 'enabled' field"));
> ret = -1;
> goto cleanup;
> }
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131002/24869213/attachment-0001.sig>
More information about the libvir-list
mailing list