Fix error not being handled when creating a docker cluster. (#24136)

This commit is contained in:
Nick Cabatoff
2023-11-15 09:09:06 -05:00
committed by GitHub
parent 0ab8cfdff6
commit 22a2e74fcc
2 changed files with 4 additions and 1 deletions

3
changelog/24136.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
sdk: Return error when failure occurs setting up node 0 in NewDockerCluster, instead of ignoring it.
```

View File

@@ -1071,7 +1071,7 @@ func (dc *DockerCluster) setupDockerCluster(ctx context.Context, opts *DockerClu
}
if i == 0 {
if err := dc.setupNode0(ctx); err != nil {
return nil
return err
}
} else {
if err := dc.joinNode(ctx, i, 0); err != nil {