File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ class Scf {
128128 Action : 'UpdateFunctionCode' ,
129129 Version : functionInputs . Version ,
130130 Region : functionInputs . Region ,
131- Handler : inputs . Handler || funcInfo . Handler ,
131+ Handler : functionInputs . Handler || funcInfo . Handler ,
132132 FunctionName : functionInputs . FunctionName ,
133133 CosBucketName : functionInputs [ 'Code.CosBucketName' ] ,
134134 CosObjectName : functionInputs [ 'Code.CosObjectName' ] ,
@@ -432,6 +432,9 @@ class Scf {
432432 ) ;
433433 }
434434 await this . updatefunctionConfigure ( inputs , funcInfo ) ;
435+
436+ // after updating function, get latest function info
437+ funcInfo = await this . getFunction ( namespace , inputs . name ) ;
435438 }
436439
437440 // after create/update function, should check function status is active, then continue
You can’t perform that action at this time.
0 commit comments