Skip to content

Commit

Permalink
fix(deploy): Fix possible nil pointer for nil service groups (#1460)
Browse files Browse the repository at this point in the history
Reviewed-by: Cezar Craciunoiu <[email protected]>
Approved-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc authored Mar 26, 2024
2 parents 583f2d7 + 6dced0f commit 752a90c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/cli/kraft/cloud/deploy/deployer_image_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,9 @@ func (deployer *deployerImageName) Deploy(ctx context.Context, opts *DeployOptio
return nil, nil, err
}

return instResp, []kcservices.GetResponseItem{*sg}, nil
if sg != nil {
return instResp, []kcservices.GetResponseItem{*sg}, nil
}

return instResp, nil, nil
}

0 comments on commit 752a90c

Please sign in to comment.