From f72e4a9db1730b2d824656c1961e2697cbb93185 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Fri, 30 Jul 2010 11:28:55 -0400 Subject: [PATCH] Fix a bogus warning when parsing 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 --- src/conf/domain_conf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 883c682e66..40e6d1c40a 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -3716,6 +3716,9 @@ virDomainHostdevDefParseXML(const xmlNodePtr node, goto error; } } 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 { virDomainReportError(VIR_ERR_INTERNAL_ERROR, _("unknown node %s"), cur->name); -- 2.39.5