From d99fea7a98554fa633e2ac95993acfec1da70178 Mon Sep 17 00:00:00 2001 From: Brian Herrera Date: Wed, 26 May 2021 13:54:39 -0700 Subject: [PATCH] [Inclusion] Rename parameter for retry config Parameter was renamed to allowed_methods in urllib3 1.26.0. Both options are currently available in the version we are using now. --- scripts/build/lambda/trigger_first_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/lambda/trigger_first_build.py b/scripts/build/lambda/trigger_first_build.py index 6ebe09f7ee..3b4587e737 100755 --- a/scripts/build/lambda/trigger_first_build.py +++ b/scripts/build/lambda/trigger_first_build.py @@ -53,7 +53,7 @@ def lambda_handler(event, context): backoff = 30 status_list = [404] # Retry if the branch doesn't exist yet and provide time for Jenkins to discover it. method_list = ['POST'] - retry_config = Retry(total=retries, backoff_factor=backoff, status_forcelist=status_list, method_whitelist=method_list) + retry_config = Retry(total=retries, backoff_factor=backoff, status_forcelist=status_list, allowed_methods=method_list) session = requests.Session() session.mount('https://', HTTPAdapter(max_retries=retry_config))