Merge pull request #966 from aws-lumberyard-dev/pipelines/LYN-4027

[Inclusion] Rename parameter for retry config
This commit is contained in:
Brian Herrera
2021-05-26 16:03:40 -07:00
committed by GitHub
+1 -1
View File
@@ -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))