mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
conf: fix enum convertor function for feature capability errors
A copy+paste mistaken meant the wrong enum -> string convertor function was used for the error when an incorrect feature capability was used. Reviewed-by: John Ferlan <jferlan@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
8c618e17d1
commit
6a306a6b8f
@ -20528,7 +20528,7 @@ virDomainDefParseXML(xmlDocPtr xml,
|
||||
if ((def->caps_features[val] = virTristateSwitchTypeFromString(tmp)) == -1) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("unknown state attribute '%s' of feature capability '%s'"),
|
||||
tmp, virDomainFeatureTypeToString(val));
|
||||
tmp, virDomainCapsFeatureTypeToString(val));
|
||||
goto error;
|
||||
}
|
||||
VIR_FREE(tmp);
|
||||
|
Loading…
Reference in New Issue
Block a user