On a Friday in 2021, Kristina Hanicova wrote:
We need to know if validation flag is present in order to
validate given XML against schema in virXMLParse().
Signed-off-by: Kristina Hanicova <khanicov(a)redhat.com>
---
src/conf/interface_conf.c | 14 ++++++++------
src/conf/interface_conf.h | 3 ++-
src/conf/virinterfaceobj.c | 2 +-
src/interface/interface_backend_netcf.c | 4 ++--
src/test/test_driver.c | 2 +-
tests/interfacexml2xmltest.c | 2 +-
6 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/src/conf/interface_conf.c b/src/conf/interface_conf.c
index c371a252a8..464ff26856 100644
--- a/src/conf/interface_conf.c
+++ b/src/conf/interface_conf.c
@@ -685,7 +685,6 @@ virInterfaceDefParseXML(xmlXPathContextPtr ctxt,
VIR_XPATH_NODE_AUTORESTORE(ctxt)
xmlNodePtr lnk;
-
/* check @type */
tmp = virXPathString("string(./@type)", ctxt);
if (tmp == NULL) {
Unrelated whitespace change
Jano