Skip to content

Commit

Permalink
Fix nil pointer dereference in validate_deployments job (rilldata#5243)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspersjo authored Jul 10, 2024
1 parent a7c9982 commit 21be1af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion admin/worker/validate_deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,13 @@ func (w *Worker) reconcileAllDeploymentsForProject(ctx context.Context, proj *da
return err
}

var prodDeplID string
if proj.ProdDeploymentID != nil {
prodDeplID = *proj.ProdDeploymentID
}

for _, depl := range depls {
if depl.ID == *proj.ProdDeploymentID {
if depl.ID == prodDeplID {
// Get deployment provisioner
p, ok := w.admin.ProvisionerSet[depl.Provisioner]
if !ok {
Expand Down

0 comments on commit 21be1af

Please sign in to comment.