mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-16 18:25:08 -06:00
Fix virsh net-info output for consistency
All *-info virsh commands output a list of colon-seperated key-val pairs. But virsh net-info command misses this colon for key "Name" and "UUID". Signed-off-by: Hao Liu <hliu@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
de53eee25e
commit
8836c1f878
@ -367,10 +367,10 @@ cmdNetworkInfo(vshControl *ctl, const vshCmd *cmd)
|
||||
if (!(network = vshCommandOptNetwork(ctl, cmd, NULL)))
|
||||
return false;
|
||||
|
||||
vshPrint(ctl, "%-15s %s\n", _("Name"), virNetworkGetName(network));
|
||||
vshPrint(ctl, "%-15s %s\n", _("Name:"), virNetworkGetName(network));
|
||||
|
||||
if (virNetworkGetUUIDString(network, uuid) == 0)
|
||||
vshPrint(ctl, "%-15s %s\n", _("UUID"), uuid);
|
||||
vshPrint(ctl, "%-15s %s\n", _("UUID:"), uuid);
|
||||
|
||||
active = virNetworkIsActive(network);
|
||||
if (active >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user