From 29a7e608b3e4b40f162dc0f77d5e9005449c6462 Mon Sep 17 00:00:00 2001 From: Steve Laing Date: Tue, 9 Jun 2026 16:56:12 +0100 Subject: [PATCH] Ensure AE title is valid for review and preprod Truncates REVIEW and PREPROD to REV and PRE eg. RUBIE_PACS_PRE --- scripts/bash/deploy_arc_ring.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/bash/deploy_arc_ring.sh b/scripts/bash/deploy_arc_ring.sh index 1b64538c..6375b491 100755 --- a/scripts/bash/deploy_arc_ring.sh +++ b/scripts/bash/deploy_arc_ring.sh @@ -64,9 +64,8 @@ declare -a RUN_CMD_NAMES=() # API_ENVIRONMENT is used to set the AET and port for the MWL and PACS servers. API_ENVIRONMENT=$(echo "$ENVIRONMENT" | tr '[:lower:]' '[:upper:]') - -if [[ "$API_ENVIRONMENT" == "PREPROD" ]]; then - API_ENVIRONMENT="PRE" +if [[ ${#API_ENVIRONMENT} -gt 4 ]]; then + API_ENVIRONMENT=${API_ENVIRONMENT:0:3} # Truncate REVIEW and PREPROD to 3 chars to fit within AET length limit fi while IFS= read -r MACHINE_JSON; do