diff options
author | Peter Krempa <pkrempa@redhat.com> | 2022-10-18 12:34:07 +0200 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2022-11-01 13:07:20 +0100 |
commit | 0268270b0f097cfca4219624daa31270a7cedf0f (patch) | |
tree | 347038ce126c89dbbb274f01ccc1765e32a44fe7 /tests/nodedevxml2xmltest.c | |
parent | abfdaf8a94b1c6f12c51e7463e1d28c5e54918f5 (diff) | |
download | libvirt-0268270b0f097cfca4219624daa31270a7cedf0f.tar.gz |
conf: node_device: Add 'validate' argument to virNodeDeviceDefParse
Allow callers to request XML validation against the schema. All callers
for now pass 'false'.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'tests/nodedevxml2xmltest.c')
-rw-r--r-- | tests/nodedevxml2xmltest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/nodedevxml2xmltest.c b/tests/nodedevxml2xmltest.c index d1c0652e7d..068ec68769 100644 --- a/tests/nodedevxml2xmltest.c +++ b/tests/nodedevxml2xmltest.c @@ -23,7 +23,8 @@ testCompareXMLToXMLFiles(const char *xml, const char *outfile) if (virTestLoadFile(xml, &xmlData) < 0) goto fail; - if (!(dev = virNodeDeviceDefParse(xmlData, NULL, EXISTING_DEVICE, NULL, NULL, NULL))) + if (!(dev = virNodeDeviceDefParse(xmlData, NULL, EXISTING_DEVICE, NULL, + NULL, NULL, false))) goto fail; /* Calculate some things that are not read in */ |