]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemuAgentGetInterfaces: Don't error out on missing HW address
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 17 Mar 2015 16:32:24 +0000 (17:32 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 18 Mar 2015 08:13:19 +0000 (09:13 +0100)
Now that we allow HW address to be not present on our RPC layer,
don't error out if qemu-ga hasn't provided any.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_agent.c

index 5f90b15bc9e645fc6b7637f4879d71c03a5eb619..a7b327969d3ea68c0b7075b134d7bcc846beff64 100644 (file)
@@ -2054,13 +2054,6 @@ qemuAgentGetInterfaces(qemuAgentPtr mon,
                 goto error;
 
             hwaddr = virJSONValueObjectGetString(tmp_iface, "hardware-address");
-            if (!hwaddr) {
-                virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                               _("qemu agent didn't provide"
-                                 " 'hardware-address' field"));
-                goto error;
-            }
-
             if (VIR_STRDUP(iface->hwaddr, hwaddr) < 0)
                 goto error;
         }