mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virsh: Replace list element to defined variable
Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
This commit is contained in:
@@ -542,7 +542,7 @@ cmdSecretList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
|
|||||||
const char *usageStr = virSecretUsageTypeTypeToString(usageType);
|
const char *usageStr = virSecretUsageTypeTypeToString(usageType);
|
||||||
char uuid[VIR_UUID_STRING_BUFLEN];
|
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"));
|
vshError(ctl, "%s", _("Failed to get uuid of secret"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user