]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemuMonitorJSONGetVirtType: Fix error message
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Oct 2013 11:58:40 +0000 (13:58 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Oct 2013 06:57:50 +0000 (08:57 +0200)
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.

src/qemu/qemu_monitor_json.c

index 2d841616d28c1a3b2fd56ec14f8c85431a4945c5..fc57c0057648b6aa9ba38489874ad2b79439586c 100644 (file)
@@ -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;
         }