Fix list-hosts with show-channels shows * with disabled channels

This commit is contained in:
Jana Cupova 2021-09-03 14:48:56 +02:00
parent b79f8e0462
commit 9740c1afd7

View file

@ -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: