From 2f04bea911d54f98db6c46af96d0ade185e0b1aa Mon Sep 17 00:00:00 2001 From: Stewart Wallace Date: Tue, 16 Nov 2021 14:21:27 +0000 Subject: [PATCH 1/2] Update src/lambda_codebase/account_processing/register_account_for_support.py Co-authored-by: Simon Kok --- .../account_processing/register_account_for_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lambda_codebase/account_processing/register_account_for_support.py b/src/lambda_codebase/account_processing/register_account_for_support.py index 96ad7859d..927ec8b7f 100644 --- a/src/lambda_codebase/account_processing/register_account_for_support.py +++ b/src/lambda_codebase/account_processing/register_account_for_support.py @@ -50,7 +50,7 @@ def get_support_level(self) -> SupportLevel: """ try: severity_levels = self.client.describe_severity_levels()["severityLevels"] - available_support_codes = [level["code"] for level in severity_levels] + available_support_codes = list(map(lambda s: s["code"], severity_levels)) # See: https://aws.amazon.com/premiumsupport/plans/ for insights into the interpretation of # the available support codes. From 873b7a7331d6916c44ce7342ef982a2ae80aa636 Mon Sep 17 00:00:00 2001 From: Stewart Wallace Date: Tue, 16 Nov 2021 14:26:43 +0000 Subject: [PATCH 2/2] Update src/lambda_codebase/account_processing/requirements.txt Co-authored-by: Simon Kok --- src/lambda_codebase/account_processing/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lambda_codebase/account_processing/requirements.txt b/src/lambda_codebase/account_processing/requirements.txt index 0230d520d..a23dccc15 100644 --- a/src/lambda_codebase/account_processing/requirements.txt +++ b/src/lambda_codebase/account_processing/requirements.txt @@ -1,3 +1,3 @@ pyyaml>=5.4.1 -wrapt==1.12 +wrapt==1.12 # https://github.com/aws/aws-lambda-builders/issues/302 aws-xray-sdk==2.8.0 \ No newline at end of file