Only yield Server if there are clients for it
This commit is contained in:
parent
7077446627
commit
96d6e9f050
|
@ -131,5 +131,6 @@ def parse_logs(log_glob, ident_map=None, online_dc=True, *args, **kwargs):
|
||||||
events = filter(None, map(_parse_line, f))
|
events = filter(None, map(_parse_line, f))
|
||||||
# chain apply events to Client-obj
|
# chain apply events to Client-obj
|
||||||
clients.apply_events(itertools.chain.from_iterable(events))
|
clients.apply_events(itertools.chain.from_iterable(events))
|
||||||
# assemble Server-obj and yield
|
if len(clients) >= 1:
|
||||||
yield Server(virtualserver_id, clients)
|
# assemble Server-obj and yield
|
||||||
|
yield Server(virtualserver_id, clients)
|
||||||
|
|
Loading…
Reference in New Issue