mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: sanitize virDomainObjFormat & virDomainDefFormat* APIs
Moving their instance parameter to be the first one, and give consistent ordering of other parameters across all functions. Ensure that the xml options are passed into both functions in prep for future work. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -1140,7 +1140,7 @@ testCompareDomXML2XMLFiles(virCapsPtr caps, virDomainXMLOptionPtr xmlopt,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!(actual = virDomainDefFormat(def, caps, format_flags))) {
|
||||
if (!(actual = virDomainDefFormat(def, xmlopt, caps, format_flags))) {
|
||||
result = TEST_COMPARE_DOM_XML2XML_RESULT_FAIL_FORMAT;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user