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

Commitf2edcf3

Browse files
authored
fix: add missing clause for tracking replacements (#17849)
We should only be tracking resource replacements during a prebuildclaim.Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent522c178 commitf2edcf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎coderd/provisionerdserver/provisionerdserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ func (s *server) CompleteJob(ctx context.Context, completed *proto.CompletedJob)
18361836
})
18371837
}
18381838

1839-
ifs.PrebuildsOrchestrator!=nil {
1839+
ifs.PrebuildsOrchestrator!=nil&&input.PrebuiltWorkspaceBuildStage==sdkproto.PrebuiltWorkspaceBuildStage_CLAIM{
18401840
// Track resource replacements, if there are any.
18411841
orchestrator:=s.PrebuildsOrchestrator.Load()
18421842
ifresourceReplacements:=completed.GetWorkspaceBuild().GetResourceReplacements();orchestrator!=nil&&len(resourceReplacements)>0 {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp