Skip to content

Commit a6ae9cd

Browse files
authored
Merge pull request #130 from NHSDigital/fix-review-ae-title
Ensure AE title is less than 16 chars in review
2 parents 413ed25 + 29a7e60 commit a6ae9cd

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)