File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,19 +101,19 @@ class Scf {
101
101
async checkStatus ( namespace = 'default' , functionName , qualifier = '$LATEST' ) {
102
102
console . log ( `Checking function ${ functionName } status` ) ;
103
103
let initialInfo = await this . getFunction ( namespace , functionName , qualifier ) ;
104
- let status = initialInfo . Status ;
104
+ let status = initialInfo ;
105
105
let times = 120 ;
106
106
while ( CONFIGS . waitStatus . indexOf ( status ) !== - 1 && times > 0 ) {
107
107
initialInfo = await this . getFunction ( namespace , functionName , qualifier ) ;
108
108
status = initialInfo . Status ;
109
109
await sleep ( 1000 ) ;
110
110
times = times - 1 ;
111
111
}
112
- const { Status , StatusReasons } = initialInfo ;
112
+ const { StatusReasons } = initialInfo ;
113
113
return status !== 'Active'
114
114
? StatusReasons && StatusReasons . length > 0
115
115
? `函数状态异常, ${ StatusReasons [ 0 ] . ErrorMessage } `
116
- : `函数状态异常, ${ Status } `
116
+ : `函数状态异常, ${ status } `
117
117
: true ;
118
118
}
119
119
You can’t perform that action at this time.
0 commit comments