From: Andrea Bolognani Date: Tue, 30 Jan 2018 14:11:10 +0000 (+0100) Subject: conf: Use correct attribute name in error message X-Git-Tag: v4.1.0-rc1~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7f6d4d01063a1c445f2b9cf8af11f8e8c36db43;p=thirdparty%2Flibvirt.git conf: Use correct attribute name in error message The feature has an attribute named 'policy', but the error message mentioned the non-existing 'state' attribute instead. Signed-off-by: Andrea Bolognani --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 1581f61a4c..9c9e3334f0 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -19162,7 +19162,7 @@ virDomainDefParseXML(xmlDocPtr xml, if ((tmp = virXMLPropString(nodes[i], "policy"))) { if ((def->features[val] = virDomainCapabilitiesPolicyTypeFromString(tmp)) == -1) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("unknown state attribute '%s' of feature '%s'"), + _("unknown policy attribute '%s' of feature '%s'"), tmp, virDomainFeatureTypeToString(val)); goto error; }