Skip to content

Commit

Permalink
removed external errors pkg osdconfig (libopenstorage#359)
Browse files Browse the repository at this point in the history
Signed-off-by: Saurabh Deoras <[email protected]>
  • Loading branch information
sdeoras authored Mar 14, 2018
1 parent 2b33686 commit 557d5d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions osdconfig/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"encoding/json"
"fmt"
"path/filepath"

"github.com/pkg/errors"
)

// GetClusterConf retrieves cluster level data from kvdb
Expand Down Expand Up @@ -103,7 +101,7 @@ func (manager *configManager) DeleteNodeConf(nodeID string) error {
func (manager *configManager) EnumerateNodeConf() (*NodesConfig, error) {
keys, err := manager.kv.Keys(baseKey, nodeKey)
if err != nil {
return nil, errors.New("kvdb.Keys() returned error: " + err.Error())
return nil, fmt.Errorf("kvdb.Keys() returned error: " + err.Error())
}

nodesConfig := new(NodesConfig)
Expand Down

0 comments on commit 557d5d1

Please sign in to comment.