From 803a7f72b732e64723b92238209457e6e104b927 Mon Sep 17 00:00:00 2001 From: Alex Chantavy Date: Mon, 5 Dec 2022 11:50:13 -0800 Subject: [PATCH] Fix missing service_id param (#34) Bandaid fix to get pull_alerts.py working again; somehow https://github.com/lyft/opsreview/pull/31 specified keyword args incorrectly. --- pull_alerts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pull_alerts.py b/pull_alerts.py index 04868a8..7d8eb30 100644 --- a/pull_alerts.py +++ b/pull_alerts.py @@ -55,13 +55,13 @@ def recent_incidents_for_services(services, time_window): except urllib.error.HTTPError as e: if e.reason == 'URI Too Long': - mid_point = int(len(service_ids)/2) + mid_point = int(len(services)/2) return recent_incidents_for_services( - service_ids=service_ids[:mid_point], - time_window=time_window + services[:mid_point], + time_window, ) + recent_incidents_for_services( - service_ids=service_ids[mid_point:], - time_window=time_window + services[mid_point:], + time_window, ) raise