mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
Fix error not being handled when creating a docker cluster. (#24136)
This commit is contained in:
parent
0ab8cfdff6
commit
22a2e74fcc
2 changed files with 4 additions and 1 deletions
3
changelog/24136.txt
Normal file
3
changelog/24136.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
sdk: Return error when failure occurs setting up node 0 in NewDockerCluster, instead of ignoring it.
|
||||
```
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue