Skip to content

Commit 803a7f7

Browse files
author
Alex Chantavy
authored
Fix missing service_id param (lyft#34)
Bandaid fix to get pull_alerts.py working again; somehow lyft#31 specified keyword args incorrectly.
1 parent 7dc0a57 commit 803a7f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pull_alerts.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ def recent_incidents_for_services(services, time_window):
5555

5656
except urllib.error.HTTPError as e:
5757
if e.reason == 'URI Too Long':
58-
mid_point = int(len(service_ids)/2)
58+
mid_point = int(len(services)/2)
5959
return recent_incidents_for_services(
60-
service_ids=service_ids[:mid_point],
61-
time_window=time_window
60+
services[:mid_point],
61+
time_window,
6262
) + recent_incidents_for_services(
63-
service_ids=service_ids[mid_point:],
64-
time_window=time_window
63+
services[mid_point:],
64+
time_window,
6565
)
6666
raise
6767

0 commit comments

Comments
 (0)