mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
util: Fix secret generation in virStorageSourceParseRBDColonString
Commit id '5604c056' used the wrong API to generate the <secret type='%s'..." field. The previous code used the correct API as was done in commit id '6887af39'. The data is actually a usage type not an auth type even though the result is the same.
This commit is contained in:
parent
2dd024754e
commit
ffdce9b1f1
@ -44,6 +44,7 @@
|
|||||||
#include "virbuffer.h"
|
#include "virbuffer.h"
|
||||||
#include "virjson.h"
|
#include "virjson.h"
|
||||||
#include "virstorageencryption.h"
|
#include "virstorageencryption.h"
|
||||||
|
#include "virsecret.h"
|
||||||
|
|
||||||
#define VIR_FROM_THIS VIR_FROM_STORAGE
|
#define VIR_FROM_THIS VIR_FROM_STORAGE
|
||||||
|
|
||||||
@ -2547,7 +2548,7 @@ virStorageSourceParseRBDColonString(const char *rbdstr,
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (VIR_STRDUP(authdef->secrettype,
|
if (VIR_STRDUP(authdef->secrettype,
|
||||||
virStorageAuthTypeToString(VIR_STORAGE_AUTH_TYPE_CEPHX)) < 0)
|
virSecretUsageTypeToString(VIR_SECRET_USAGE_TYPE_CEPH)) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
src->auth = authdef;
|
src->auth = authdef;
|
||||||
authdef = NULL;
|
authdef = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user