mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
Fix a bogus warning when parsing <hostdev>
When parsing hostdev, the following message would be emitted: 10:17:19.052: error : virDomainHostdevDefParseXML:3748 : internal error unknown node alias However, alias is appropriately parsed in virDomainDeviceInfoParseXML anyway. Disable the error message in the initial XML parsing loop. Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
b6aa8e16bb
commit
f72e4a9db1
@ -3716,6 +3716,9 @@ virDomainHostdevDefParseXML(const xmlNodePtr node,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
} else if (xmlStrEqual(cur->name, BAD_CAST "address")) {
|
} else if (xmlStrEqual(cur->name, BAD_CAST "address")) {
|
||||||
|
/* address is parsed as part of virDomainDeviceInfoParseXML */
|
||||||
|
} else if (xmlStrEqual(cur->name, BAD_CAST "alias")) {
|
||||||
|
/* alias is parsed as part of virDomainDeviceInfoParseXML */
|
||||||
} else {
|
} else {
|
||||||
virDomainReportError(VIR_ERR_INTERNAL_ERROR,
|
virDomainReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("unknown node %s"), cur->name);
|
_("unknown node %s"), cur->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user