Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca414b0

Browse files
authored
fix: fix data race in echo provisioner (#17142)
1 parent1360bfe commitca414b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎provisioner/echo/serve.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func TarWithOptions(ctx context.Context, logger slog.Logger, responses *Response
254254
continue
255255
}
256256

257-
iflen(plan.Plan)==0 {
257+
ifplan.Error==""&&len(plan.Plan)==0 {
258258
plan.Plan= []byte("{}")
259259
}
260260
}
@@ -316,7 +316,7 @@ func TarWithOptions(ctx context.Context, logger slog.Logger, responses *Response
316316
fori,resp:=rangem {
317317
plan:=resp.GetPlan()
318318
ifplan!=nil {
319-
iflen(plan.Plan)==0 {
319+
ifplan.Error==""&&len(plan.Plan)==0 {
320320
plan.Plan= []byte("{}")
321321
}
322322
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp