Skip to content

Commit f0bf49c

Browse files
author
dfounderliu
committed
fix login
1 parent 4520dea commit f0bf49c

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

deploy/tencentDeploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TencentDeploy {
2626
}
2727

2828
async deploy() {
29-
if (!this.options.secret_id) {
29+
if (!this.options.credentials.tencent_secret_id) {
3030
const provider = new tencentProvider(this.serverless, this.options)
3131
const tencentTemp = await provider.getTempKey()
3232
this.options.credentials = {

deploy/tencentDeployFunction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TencentDeployFunction {
3131
}
3232

3333
async deploy() {
34-
if (!this.options.secret_id) {
34+
if (!this.options.credentials.tencent_secret_id) {
3535
const provider = new tencentProvider(this.serverless, this.options)
3636
const tencentTemp = await provider.getTempKey()
3737
this.options.credentials = {

deploy/tencentDeployList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TencentDeployList {
2323
}
2424

2525
async serviceList() {
26-
if (!this.options.secret_id) {
26+
if (!this.options.credentials.tencent_secret_id) {
2727
const provider = new tencentProvider(this.serverless, this.options)
2828
const tencentTemp = await provider.getTempKey()
2929
this.options.credentials = {

deploy/tencentDeployListFunctions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TencentDeployListFunction {
2525
}
2626

2727
async functionList() {
28-
if (!this.options.secret_id) {
28+
if (!this.options.credentials.tencent_secret_id) {
2929
const provider = new tencentProvider(this.serverless, this.options)
3030
const tencentTemp = await provider.getTempKey()
3131
this.options.credentials = {

info/tencentInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TencentInfo {
2424
}
2525

2626
async info() {
27-
if (!this.options.secret_id) {
27+
if (!this.options.credentials.tencent_secret_id) {
2828
const provider = new tencentProvider(this.serverless, this.options)
2929
const tencentTemp = await provider.getTempKey()
3030
this.options.credentials = {

invoke/tencentInvoke.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TencentInvoke {
2323
}
2424

2525
async invoke() {
26-
if (!this.options.secret_id) {
26+
if (!this.options.credentials.tencent_secret_id) {
2727
const provider = new tencentProvider(this.serverless, this.options)
2828
const tencentTemp = await provider.getTempKey()
2929
this.options.credentials = {

logs/tencentLogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TencentLogs {
4949
}
5050

5151
async logs() {
52-
if (!this.options.secret_id) {
52+
if (!this.options.credentials.tencent_secret_id) {
5353
const provider = new tencentProvider(this.serverless, this.options)
5454
const tencentTemp = await provider.getTempKey()
5555
this.options.credentials = {

metrics/tencentMetrics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class TencentInfo {
5757
}
5858

5959
async metrics() {
60-
if (!this.options.secret_id) {
60+
if (!this.options.credentials.tencent_secret_id) {
6161
const provider = new tencentProvider(this.serverless, this.options)
6262
const tencentTemp = await provider.getTempKey()
6363
this.options.credentials = {

remove/tencentRemove.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TencentRemove {
2424
}
2525

2626
async remove() {
27-
if (!this.options.secret_id) {
27+
if (!this.options.credentials.tencent_secret_id) {
2828
const provider = new tencentProvider(this.serverless, this.options)
2929
const tencentTemp = await provider.getTempKey()
3030
this.options.credentials = {

rollback/tencentRollback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TencentRollback {
2626
}
2727

2828
async rollback() {
29-
if (!this.options.secret_id) {
29+
if (!this.options.credentials.tencent_secret_id) {
3030
const provider = new tencentProvider(this.serverless, this.options)
3131
const tencentTemp = await provider.getTempKey()
3232
this.options.credentials = {

0 commit comments

Comments
 (0)