Skip to content

Commit e2984ef

Browse files
committed
Ensure AE title is less than 16 chars in review
1 parent 413ed25 commit e2984ef

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/bash/deploy_arc_ring.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ 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"
70-
fi
67+
API_ENVIRONMENT=${API_ENVIRONMENT:0:3} # AETs have a max length of 16 chars.
7168

7269
while IFS= read -r MACHINE_JSON; do
7370
MACHINE=$(echo "$MACHINE_JSON" | jq -r '.name')

0 commit comments

Comments
 (0)