]> xenbits.xensource.com Git - libvirt.git/commit
virsh: cmdList: Revert to script-friendly output for 'virsh list --uuid'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Sep 2024 12:17:38 +0000 (14:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 5 Sep 2024 13:24:55 +0000 (15:24 +0200)
commit008214842011d77fa4feda8d1ff586d29791f8ab
tree3d8cef37af2f2c8905e0cc8f767047223c1d2a77
parenta35a355b09cb9cbb2ba960116303b05dc3b5fb49
virsh: cmdList: Revert to script-friendly output for 'virsh list --uuid'

Commit 271940223c2914bf63cbec00930ce46d6eef30ba 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: 271940223c2914bf63cbec00930ce46d6eef30ba
Closes: https://gitlab.com/libvirt/libvirt/-/issues/666
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
tools/virsh-domain-monitor.c