conf: Use correct attribute name in error message

The <capabilities> feature has an attribute named 'policy', but the
error message mentioned the non-existing 'state' attribute instead.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Andrea Bolognani 2018-01-30 15:11:10 +01:00
parent b2c5f28a72
commit c7f6d4d010

View File

@ -19162,7 +19162,7 @@ virDomainDefParseXML(xmlDocPtr xml,
if ((tmp = virXMLPropString(nodes[i], "policy"))) { if ((tmp = virXMLPropString(nodes[i], "policy"))) {
if ((def->features[val] = virDomainCapabilitiesPolicyTypeFromString(tmp)) == -1) { if ((def->features[val] = virDomainCapabilitiesPolicyTypeFromString(tmp)) == -1) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("unknown state attribute '%s' of feature '%s'"), _("unknown policy attribute '%s' of feature '%s'"),
tmp, virDomainFeatureTypeToString(val)); tmp, virDomainFeatureTypeToString(val));
goto error; goto error;
} }