Skip to content

Commit b30eb16

Browse files
committed
fix(scf): handler update
1 parent 30b82f0 commit b30eb16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/modules/scf/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)