mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh: cmdList: Revert to script-friendly output for 'virsh list --uuid'
Commit271940223c
which strived to add support to use '--uuid' in the table output of 'virsh list' went too far and also allowed the default table view to be enabled when just '--uuid' is specified. This broke the script-friendly output which previously had this format: $ virsh list --uuid b6d03c07-86f8-4a57-8719-172a5d0359bb to this script-unfriendly output: $ virsh list --uuid Id Name State UUID ------------------------------------------------------------- 1 ha running b6d03c07-86f8-4a57-8719-172a5d0359bb Using the human friendly output will still be possible by using: $ virsh list --table --uuid Fixes:271940223c
Closes: https://gitlab.com/libvirt/libvirt/-/issues/666 Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
a35a355b09
commit
0082148420
@ -1857,7 +1857,7 @@ cmdList(vshControl *ctl, const vshCmd *cmd)
|
||||
VSH_EXCLUSIVE_OPTIONS("table", "name");
|
||||
VSH_EXCLUSIVE_OPTIONS("table", "id");
|
||||
|
||||
if (!optName && !optID)
|
||||
if (!optUUID && !optName && !optID)
|
||||
optTable = true;
|
||||
|
||||
if (!(list = virshDomainListCollect(ctl, flags)))
|
||||
|
Loading…
Reference in New Issue
Block a user