]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: Use correct attribute name in error message
authorAndrea Bolognani <abologna@redhat.com>
Tue, 30 Jan 2018 14:11:10 +0000 (15:11 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 30 Jan 2018 17:44:11 +0000 (18:44 +0100)
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>
src/conf/domain_conf.c

index 1581f61a4c5442cc2b9208ca45ae6ef1aa1dce19..9c9e3334f08ade3ca337fe195d75e83de2ca7c78 100644 (file)
@@ -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;
                 }