mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Fix github config path returning 500 instead of 404
This commit is contained in:
@@ -113,7 +113,7 @@ func (b *backend) pathConfigRead(ctx context.Context, req *logical.Request, data
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if config == nil {
|
if config == nil {
|
||||||
return nil, fmt.Errorf("configuration object not found")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
d := map[string]interface{}{
|
d := map[string]interface{}{
|
||||||
@@ -140,7 +140,6 @@ func (b *backend) Config(ctx context.Context, s logical.Storage) (*config, error
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if entry == nil {
|
if entry == nil {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user