mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-11 05:24:44 -05:00
conf: secret: Provide only virSecretDefParse
Replace the virSecretDefParseFile/String shims by calls to virSecretDefParse. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -13,7 +13,7 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml)
|
||||
g_autofree char *actual = NULL;
|
||||
g_autoptr(virSecretDef) secret = NULL;
|
||||
|
||||
if (!(secret = virSecretDefParseFile(inxml)))
|
||||
if (!(secret = virSecretDefParse(NULL, inxml, 0)))
|
||||
return -1;
|
||||
|
||||
if (!(actual = virSecretDefFormat(secret)))
|
||||
|
||||
Reference in New Issue
Block a user