From dea60272b729da20d960f44638fbac54ba5d0308 Mon Sep 17 00:00:00 2001 From: Johan Siebens Date: Sat, 3 Feb 2024 09:06:43 +0100 Subject: [PATCH] fix: cli also accepts IONSCALE_KEYS_SYSTEM_ADMIN_KEY env variable --- internal/cmd/target.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cmd/target.go b/internal/cmd/target.go index 5d0c8ce..dd8e126 100644 --- a/internal/cmd/target.go +++ b/internal/cmd/target.go @@ -9,6 +9,7 @@ import ( const ( ionscaleSystemAdminKey = "IONSCALE_SYSTEM_ADMIN_KEY" + ionscaleKeysSystemAdminKey = "IONSCALE_KEYS_SYSTEM_ADMIN_KEY" ionscaleAddr = "IONSCALE_ADDR" ionscaleInsecureSkipVerify = "IONSCALE_SKIP_VERIFY" ) @@ -56,5 +57,5 @@ func (t *Target) getSystemAdminKey() string { if len(t.systemAdminKey) != 0 { return t.systemAdminKey } - return config.GetString(ionscaleSystemAdminKey, "") + return config.GetString(ionscaleSystemAdminKey, config.GetString(ionscaleKeysSystemAdminKey, "")) }