mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
virsh: Replace list element to defined variable
Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
This commit is contained in:
parent
da74412046
commit
e4fe06e017
@ -542,7 +542,7 @@ cmdSecretList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
|
||||
const char *usageStr = virSecretUsageTypeTypeToString(usageType);
|
||||
char uuid[VIR_UUID_STRING_BUFLEN];
|
||||
|
||||
if (virSecretGetUUIDString(list->secrets[i], uuid) < 0) {
|
||||
if (virSecretGetUUIDString(sec, uuid) < 0) {
|
||||
vshError(ctl, "%s", _("Failed to get uuid of secret"));
|
||||
goto cleanup;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user