From d5d148b377d70d2f88190c03177d46930345cd0b Mon Sep 17 00:00:00 2001 From: martinwaite Date: Fri, 18 Jun 2021 23:37:45 +0100 Subject: [PATCH] typo in test for environment variables --- index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.py b/index.py index 1700b84..32b71cf 100644 --- a/index.py +++ b/index.py @@ -225,7 +225,7 @@ def lambda_handler(event, context): global AUTOSCALINGPOLICYOUT_ARN global AUTOSCALINGPOLICYIN_ARN - if 'AutoScalingPolicyOut' and 'AutoScalingPolicyIn' not in os.environ: + if 'AutoScalingPolicyOut' not in os.environ or 'AutoScalingPolicyIn' not in os.environ: autoscaling_policy_arn(context) AUTOSCALINGPOLICYOUT_ARN = os.environ['AutoScalingPolicyOut'] AUTOSCALINGPOLICYIN_ARN = os.environ['AutoScalingPolicyIn']