mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
fix: cli also accepts IONSCALE_KEYS_SYSTEM_ADMIN_KEY env variable
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
ionscaleSystemAdminKey = "IONSCALE_SYSTEM_ADMIN_KEY"
|
ionscaleSystemAdminKey = "IONSCALE_SYSTEM_ADMIN_KEY"
|
||||||
|
ionscaleKeysSystemAdminKey = "IONSCALE_KEYS_SYSTEM_ADMIN_KEY"
|
||||||
ionscaleAddr = "IONSCALE_ADDR"
|
ionscaleAddr = "IONSCALE_ADDR"
|
||||||
ionscaleInsecureSkipVerify = "IONSCALE_SKIP_VERIFY"
|
ionscaleInsecureSkipVerify = "IONSCALE_SKIP_VERIFY"
|
||||||
)
|
)
|
||||||
@@ -56,5 +57,5 @@ func (t *Target) getSystemAdminKey() string {
|
|||||||
if len(t.systemAdminKey) != 0 {
|
if len(t.systemAdminKey) != 0 {
|
||||||
return t.systemAdminKey
|
return t.systemAdminKey
|
||||||
}
|
}
|
||||||
return config.GetString(ionscaleSystemAdminKey, "")
|
return config.GetString(ionscaleSystemAdminKey, config.GetString(ionscaleKeysSystemAdminKey, ""))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user