diff options
author | Valery Piashchynski <[email protected]> | 2021-06-18 01:06:16 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-18 01:06:16 +0300 |
commit | fe7bb0fe758d573fe353df028257ed66c6eccf66 (patch) | |
tree | 74392f8e61e96c85f0d8b684cfc08e3fc3664ae9 /plugins/kv | |
parent | 68ff941c4226074206ceed9c30bd95317aa0e9fc (diff) |
- Rework main parts
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/kv')
-rw-r--r-- | plugins/kv/plugin.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/kv/plugin.go b/plugins/kv/plugin.go index efe92252..716e0d4c 100644 --- a/plugins/kv/plugin.go +++ b/plugins/kv/plugin.go @@ -85,6 +85,11 @@ func (p *Plugin) Serve() chan error { //nolint:gocognit when user requests for example boltdb-south, we should provide that particular preconfigured storage */ for k, v := range p.cfg.Data { + // for example if the key not properly formatted (yaml) + if v == nil { + continue + } + if _, ok := v.(map[string]interface{})[driver]; !ok { errCh <- errors.E(op, errors.Errorf("could not find mandatory driver field in the %s storage", k)) return errCh |