backport of commit 657ee3107a10b85b5e72cf1992a4410f8107e8e9 (#20893)
Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
This commit is contained in:
parent
e3e947b386
commit
e5f1ff2548
|
@ -135,7 +135,7 @@ func (b *backend) pathConfigAccessWrite(ctx context.Context, req *logical.Reques
|
|||
}
|
||||
token, _, err := client.ACL().Bootstrap()
|
||||
if err != nil {
|
||||
return logical.ErrorResponse("Token not provided and failed to bootstrap ACLs"), err
|
||||
return logical.ErrorResponse("Token not provided and failed to bootstrap ACLs: %s", err), nil
|
||||
}
|
||||
config.Token = token.SecretID
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
```release-note:improvement
|
||||
secrets/consul: Improve error message when ACL bootstrapping fails.
|
||||
```
|
||||
|
Loading…
Reference in New Issue