Skip to content

Commit 30b4a8a

Browse files
authored
shouldDeploy => deploy when zip has changed
1 parent a17d13d commit 30b4a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/services/function/function.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ func ResourceFunctionUpdate(ctx context.Context, d *schema.ResourceData, m inter
417417

418418
// deploy only in some conditions
419419
shouldDeploy := deploy
420-
shouldDeploy = shouldDeploy || (zipHasChanged && shouldDeploy)
420+
shouldDeploy = shouldDeploy || (zipHasChanged && deploy)
421421
shouldDeploy = shouldDeploy || d.HasChange("runtime")
422422

423423
if shouldDeploy {

0 commit comments

Comments
 (0)