Fix list-hosts with show-channels shows * with disabled channels
This commit is contained in:
parent
b79f8e0462
commit
9740c1afd7
1 changed files with 1 additions and 1 deletions
|
|
@ -3140,7 +3140,7 @@ def anon_handle_list_hosts(goptions, session, args):
|
|||
if options.show_channels:
|
||||
with session.multicall() as m:
|
||||
result = [m.listChannels(host['id']) for host in hosts]
|
||||
first_line_channel = result[0].result
|
||||
first_line_channel = result[0].result[0]
|
||||
for host, channels in zip(hosts, result):
|
||||
list_channels = []
|
||||
for c in channels.result:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue