From d11b29160cb042b7546aeaaa40792bd3d41e2985 Mon Sep 17 00:00:00 2001 From: user Date: Thu, 6 Sep 2018 15:33:58 -0700 Subject: [PATCH] fixed name of function so it works with Amazon Lambda --- handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.py b/handler.py index a963db6..3426644 100644 --- a/handler.py +++ b/handler.py @@ -131,7 +131,7 @@ def report(self, result): print(f"Failed to publish metrics to CloudWatch:{e}") -def port_check(event, context): +def lambda_handler(event, context): """Lambda function handler""" config = Config(event)