Commit f19ea260 authored by Apollon Oikonomopoulos's avatar Apollon Oikonomopoulos Committed by Guido Trotter
Browse files

Format gnt-network info group output



gnt-network info currently displays the connected group output unformatted:

 # gnt-network info
 ...
   connected to node groups:
    ['med', 'bridged', 'staging']

This patch adds formatting to the node group output.
Signed-off-by: default avatarApollon Oikonomopoulos <apoikos@gmail.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 26270366
......@@ -7,6 +7,9 @@ Version 2.7.2
*(unreleased)*
- Change the connected groups format in ``gnt-network info`` output; it
was previously displayed as a raw list by mistake.
Version 2.7.1
-------------
......
......@@ -236,8 +236,8 @@ def ShowNetworkConfig(_, args):
if group_list:
ToStdout(" connected to node groups:")
for group in group_list:
ToStdout(" %s", group)
for group, nic_mode, nic_link in group_list:
ToStdout(" %s (%s on %s)", group, nic_mode, nic_link)
else:
ToStdout(" not connected to any node group")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment