Skip to content

Commit 3e40a03

Browse files
committed
Ensure AE title is less than 16 chars in review and preprod
1 parent 413ed25 commit 3e40a03

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 16 ]; then
68+
API_ENVIRONMENT=${API_ENVIRONMENT:0:3} # AETs have a max length of 16 chars.
7069
fi
7170

7271
while IFS= read -r MACHINE_JSON; do

0 commit comments

Comments
 (0)