From 4e23fbea9b91bf75ee21275b098086d35e31e5f1 Mon Sep 17 00:00:00 2001 From: guyrenny <127672145+guyrenny@users.noreply.github.com> Date: Tue, 30 Jul 2024 10:56:58 +0300 Subject: [PATCH] Update custom-resource/index.py Co-authored-by: Shaun Remekie --- custom-resource/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom-resource/index.py b/custom-resource/index.py index d5d74fdf..72250bcc 100644 --- a/custom-resource/index.py +++ b/custom-resource/index.py @@ -447,6 +447,9 @@ def create(self): @handle_exceptions def check_statmentid_length(self, statmentid_prefix): updated_prefix = statmentid_prefix + if len(statmentid_prefix) >= 70: # StatementId length limit is 100 + updated_prefix = statmentid_prefix[:65] + statmentid_prefix[-5:] + return updated_prefix if len(statmentid_prefix) >= 70: # StatementId length limit is 100 updated_prefix = statmentid_prefix[:65] + statmentid_prefix[-5:] else: