We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a85b084 commit fea4415Copy full SHA for fea4415
lambda/api/lambda_register.py
@@ -99,7 +99,7 @@ def lambda_handler(event, context):
99
# If this endpoint does not match prefix or not enabled return a status code of Not Modified (304)
100
endpoint_name = event["detail"]["EndpointName"]
101
endpoint_tags = event["detail"]["Tags"]
102
- endpoint_enabled = endpoint_tags["ab-testing:enabled"] == "true"
+ endpoint_enabled = endpoint_tags.get("ab-testing:enabled") == "true"
103
if not (endpoint_name.startswith(ENDPOINT_PREFIX) and endpoint_enabled):
104
logger.info(
105
f"Endpoint: {endpoint_name} not enabled for prefix: {ENDPOINT_PREFIX}"
0 commit comments