Commit c163275d authored by Łukasz Nowak's avatar Łukasz Nowak

monitor: Prepare python3 support

The file_list will be iterated more than once, and filter in python3
is being consumed, so create a list instead for many iterations.
parent 3f24877e
......@@ -100,10 +100,10 @@ def generateMonitoringData(config, public_folder, private_folder, public_url,
private_url, feed_url):
feed_output = os.path.join(public_folder, 'feed')
# search for all status files
file_list = filter(
file_list = list(filter(
os.path.isfile,
glob.glob("%s/promise/*.status.json" % public_folder)
)
))
promises_status_file = os.path.join(private_folder, '_promise_status')
previous_state_dict = {}
......
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