added qa env to namecheck

This commit is contained in:
Rasmus Thorslund 2024-10-09 11:32:15 +02:00
parent c0d6e2724f
commit 0720cf9fb6
No known key found for this signature in database
GPG key ID: 502D33332E9E305D

View file

@ -41,7 +41,7 @@ if test -z "$cmd_hostname"; then
fi fi
if [[ ! $naming_override ]]; then if [[ ! $naming_override ]]; then
if [[ ! "$cmd_hostname" =~ ^([a-z]+)-(sthb|dco|tug|sto1|sto3)-(prod|dev|stage|test)-([1-9][0-9]*).sunet.se$ ]]; then if [[ ! "$cmd_hostname" =~ ^([a-z]+)-(sthb|dco|tug|sto1|sto3)-(prod|dev|stage|test|qa)-([1-9][0-9]*).sunet.se$ ]]; then
echo "$cmd_hostname is not following the naming standard: function-location-environment-number.sunet.se" echo "$cmd_hostname is not following the naming standard: function-location-environment-number.sunet.se"
exit 1 exit 1
fi fi