File tree Expand file tree Collapse file tree 10 files changed +10
-10
lines changed Expand file tree Collapse file tree 10 files changed +10
-10
lines changed Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments