Skip to content

Commit 6644699

Browse files
committed
fix(scf): do not config traffic when lastVersion is $LATEST
1 parent bd420c6 commit 6644699

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/scf/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,8 @@ class Scf {
477477
inputs.lastVersion = FunctionVersion;
478478
outputs.LastVersion = FunctionVersion;
479479
}
480-
inputs.needSetTraffic = inputs.traffic !== undefined && inputs.lastVersion;
480+
inputs.needSetTraffic =
481+
inputs.traffic !== undefined && inputs.lastVersion && inputs.lastVersion !== '$LATEST';
481482
if (inputs.needSetTraffic) {
482483
await this.updateAliasTraffic({
483484
functionName: funcInfo.FunctionName,

0 commit comments

Comments
 (0)