mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
plugin/grpc: Fix a panic when a transport error occurs during a list (#4244)
This commit is contained in:
committed by
Jeff Mitchell
parent
7c06e9610f
commit
a4fc5a40cd
@@ -27,7 +27,7 @@ func (s *GRPCStorageClient) List(ctx context.Context, prefix string) ([]string,
|
|||||||
Prefix: prefix,
|
Prefix: prefix,
|
||||||
}, largeMsgGRPCCallOpts...)
|
}, largeMsgGRPCCallOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return reply.Keys, err
|
return []string{}, err
|
||||||
}
|
}
|
||||||
if reply.Err != "" {
|
if reply.Err != "" {
|
||||||
return reply.Keys, errors.New(reply.Err)
|
return reply.Keys, errors.New(reply.Err)
|
||||||
|
|||||||
Reference in New Issue
Block a user