Incorrect error message in virDomainNetDefParseXML

* src/conf/domain_conf.c: when declaring a <interface type="bridge">
  tag, <source> needs a "bridge" attribute, but the parser complains
  about a missing "dev" attribute.
This commit is contained in:
Florian Vichot 2009-09-30 18:51:30 +02:00 committed by Daniel Veillard
parent 553f31c579
commit b37979023d

View File

@ -1112,7 +1112,7 @@ virDomainNetDefParseXML(virConnectPtr conn,
case VIR_DOMAIN_NET_TYPE_BRIDGE:
if (bridge == NULL) {
virDomainReportError(conn, VIR_ERR_INTERNAL_ERROR, "%s",
_("No <source> 'dev' attribute specified with <interface type='bridge'/>"));
_("No <source> 'bridge' attribute specified with <interface type='bridge'/>"));
goto error;
}
def->data.bridge.brname = bridge;