Skip to content

Commit

Permalink
fix: credentials token
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun authored and Yuga Sun committed Oct 23, 2020
1 parent 20f8400 commit ca11400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { Credential } from '../typings';
const configPath = join(homedir(), '.slsplus.conf');

const getCredential = (): Credential | null => {
const { TENCENT_SECRET_ID, TENCENT_SECRET_KEY, TENCENT_SECRET_TOKEN } = process.env;
const { TENCENT_SECRET_ID, TENCENT_SECRET_KEY, TENCENT_TOKEN } = process.env;
if (TENCENT_SECRET_ID && TENCENT_SECRET_KEY) {
return {
secretId: TENCENT_SECRET_ID,
secretKey: TENCENT_SECRET_KEY,
token: TENCENT_SECRET_TOKEN,
token: TENCENT_TOKEN,
};
}
return null;
Expand Down

0 comments on commit ca11400

Please sign in to comment.