Fix gs-login

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2024-02-09 16:05:53 +00:00
parent 6e93ae0969
commit 67a6f50ca7
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ case ${#POS_ARGS[@]} in
TELEPORT_CLUSTER_NAME="$(echo "${POS_ARGS[@]}" | tr ' ' '-')"
TELEPORT_SUPPORTED=$(tsh kube ls -f json --query "name == \"${TELEPORT_CLUSTER_NAME}\"" 2>/dev/null | jq '. | length')
if [ ${TELEPORT_SUPPORTED} -eq 0 ]; then
if [[ "${TELEPORT_SUPPORTED}" == "0" ]]; then
# Teleport not supported, old style login
echo "Cluster isn't know to Teleport, using old login method"
opsctl login ${DEBUG} ${POS_ARGS[@]}