added enforcement of environment even for prod, in naming standard check
This commit is contained in:
parent
e2152ab2c0
commit
c7a830378f
4
addhost
4
addhost
|
@ -41,12 +41,12 @@ if test -z "$cmd_hostname"; then
|
|||
fi
|
||||
|
||||
if [[ ! $naming_override ]]; then
|
||||
if [[ ! "$cmd_hostname" =~ ^([a-z]+)-(sthb|dco|tug)-?(prod|dev|stage|staging|test)?-([1-9][0-9]*).sunet.se$ ]]; then
|
||||
if [[ ! "$cmd_hostname" =~ ^([a-z]+)-(sthb|dco|tug)-(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
|
||||
fi
|
||||
|
||||
exit 1
|
||||
if [[ -n $cmd_proxy ]]; then
|
||||
proxyjump="-o ProxyJump=${cmd_proxy}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue