should support TRITON_KEY_ID as well
This commit is contained in:
parent
7169b06772
commit
f38bfb68f1
@ -103,7 +103,8 @@ var OPTIONS = [
|
||||
{
|
||||
names: ['keyId', 'k'],
|
||||
type: 'string',
|
||||
help: 'SSH key fingerprint. Environment: SDC_KEY_ID=FINGERPRINT.',
|
||||
help: 'SSH key fingerprint. Environment: TRITON_KEY_ID=FINGERPRINT ' +
|
||||
'or SDC_KEY_ID=FINGERPRINT.',
|
||||
helpArg: 'FINGERPRINT'
|
||||
},
|
||||
{
|
||||
|
@ -220,7 +220,7 @@ function _loadEnvProfile() {
|
||||
|
||||
envProfile.account = process.env.TRITON_ACCOUNT || process.env.SDC_ACCOUNT;
|
||||
envProfile.url = process.env.TRITON_URL || process.env.SDC_URL;
|
||||
envProfile.keyId = process.env.SDC_KEY_ID;
|
||||
envProfile.keyId = process.env.TRITON_KEY_ID || process.env.SDC_KEY_ID;
|
||||
if (process.env.TRITON_TLS_INSECURE) {
|
||||
envProfile.insecure = common.boolFromString(
|
||||
process.env.TRITON_TLS_INSECURE);
|
||||
|
Reference in New Issue
Block a user