mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Lowercasing the instance name to ensure that matches across AWS builds
This commit is contained in:
@@ -30,7 +30,7 @@ start_sec=$(/bin/date +%s.%N)
|
|||||||
msg "Getting relevant load balancer"
|
msg "Getting relevant load balancer"
|
||||||
INSTANCE_NAME=$(get_instance_name_from_tags $INSTANCE_ID)
|
INSTANCE_NAME=$(get_instance_name_from_tags $INSTANCE_ID)
|
||||||
|
|
||||||
if [[ $INSTANCE_NAME =~ 'delivery' ]]; then
|
if [[ "$(tr [:upper:] [:lower:] <<< "${INSTANCE_NAME}")" =~ 'delivery' ]]; then
|
||||||
msg "NO ELBs for delivery"
|
msg "NO ELBs for delivery"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ msg "Getting relevant load balancer"
|
|||||||
|
|
||||||
INSTANCE_NAME=$(get_instance_name_from_tags $INSTANCE_ID)
|
INSTANCE_NAME=$(get_instance_name_from_tags $INSTANCE_ID)
|
||||||
|
|
||||||
if [[ $INSTANCE_NAME =~ 'delivery' ]]; then
|
if [[ "$(tr [:upper:] [:lower:] <<< "${INSTANCE_NAME}")" =~ 'delivery' ]]; then
|
||||||
msg "NO ELBs for delivery"
|
msg "NO ELBs for delivery"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user