added sto1 and sto3 to naming standard check

This commit is contained in:
Rasmus Thorslund 2024-10-04 12:40:22 +02:00
parent 088de9a096
commit 4601836a9c
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
if [[ ! $naming_override ]]; then
if [[ ! "$cmd_hostname" =~ ^([a-z]+)-(sthb|dco|tug)-(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)-([1-9][0-9]*).sunet.se$ ]]; then
echo "$cmd_hostname is not following the naming standard: function-location-environment-number.sunet.se"
exit 1
fi