Remove double-iteratation over logfiles

by passing the iterator returned by glob.glob direclty to _bundle_logs
This commit is contained in:
Thor77 2016-11-06 19:18:21 +01:00
parent 679473f7b4
commit c8955bee5e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def parse_logs(log_glob, ident_map=None, online_dc=True, *args, **kwargs):
''' '''
vserver_clients = {} vserver_clients = {}
for virtualserver_id, logs in\ for virtualserver_id, logs in\
_bundle_logs(log_file for log_file in glob(log_glob)).items(): _bundle_logs(glob(log_glob)).items():
clients = Clients(ident_map) clients = Clients(ident_map)
# keep last log out of the iteration for now # keep last log out of the iteration for now
for log in logs[:-1]: for log in logs[:-1]: