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 {
101101 async checkStatus ( namespace = 'default' , functionName , qualifier = '$LATEST' ) {
102102 console . log ( `Checking function ${ functionName } status` ) ;
103103 let initialInfo = await this . getFunction ( namespace , functionName , qualifier ) ;
104- let status = initialInfo . Status ;
104+ let status = initialInfo ;
105105 let times = 120 ;
106106 while ( CONFIGS . waitStatus . indexOf ( status ) !== - 1 && times > 0 ) {
107107 initialInfo = await this . getFunction ( namespace , functionName , qualifier ) ;
108108 status = initialInfo . Status ;
109109 await sleep ( 1000 ) ;
110110 times = times - 1 ;
111111 }
112- const { Status , StatusReasons } = initialInfo ;
112+ const { StatusReasons } = initialInfo ;
113113 return status !== 'Active'
114114 ? StatusReasons && StatusReasons . length > 0
115115 ? `函数状态异常, ${ StatusReasons [ 0 ] . ErrorMessage } `
116- : `函数状态异常, ${ Status } `
116+ : `函数状态异常, ${ status } `
117117 : true ;
118118 }
119119
You can’t perform that action at this time.
0 commit comments