Skip to content

Commit 87968f6

Browse files
committed
Ensure AE title is valid for review and preprod
Truncates REVIEW and PREPROD to REV and PRE eg. RUBIE_PACS_PRE
1 parent 413ed25 commit 87968f6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/bash/deploy_arc_ring.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ declare -a RUN_CMD_NAMES=()
6464

6565
# API_ENVIRONMENT is used to set the AET and port for the MWL and PACS servers.
6666
API_ENVIRONMENT=$(echo "$ENVIRONMENT" | tr '[:lower:]' '[:upper:]')
67-
68-
if [[ "$API_ENVIRONMENT" == "PREPROD" ]]; then
69-
API_ENVIRONMENT="PRE"
67+
if [ ${#API_ENVIRONMENT} -gt 4 ]; then
68+
API_ENVIRONMENT=${API_ENVIRONMENT:0:3} # Truncate REVIEW and PREPROD to 3 chars to fit within AET length limit
7069
fi
7170

7271
while IFS= read -r MACHINE_JSON; do

0 commit comments

Comments
 (0)