From a16b6d3dc4997a0bf876a346fdfd62b28219777e Mon Sep 17 00:00:00 2001 From: Brian Ojeda Date: Fri, 29 Sep 2023 19:50:32 +0000 Subject: [PATCH] fix: update ref to var in tsh script --- modules/teleport-db-login/assets/tsh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/teleport-db-login/assets/tsh.sh b/modules/teleport-db-login/assets/tsh.sh index b736e5c..febb2fe 100755 --- a/modules/teleport-db-login/assets/tsh.sh +++ b/modules/teleport-db-login/assets/tsh.sh @@ -7,8 +7,8 @@ function db_login() { TSH_TARGET_CLUSTER=${1:?} TSH_TARGET_DB=${2:?} - tsh db login --cluster "${TSH_CLUSTER_NAME}" "${TSH_TARGET_DB}" 1>/dev/null - tsh db config --cluster "${TSH_CLUSTER_NAME}" --format=json "${TSH_TARGET_DB}" + tsh db login --cluster "${TSH_TARGET_CLUSTER}" "${TSH_TARGET_DB}" 1>/dev/null + tsh db config --cluster "${TSH_TARGET_CLUSTER}" --format=json "${TSH_TARGET_DB}" } # ------------------------------------------------------------------- script ---