Skip to content

Commit

Permalink
Remove warnings from component scan
Browse files Browse the repository at this point in the history
Warnings showed up on directories in the PATH which did not
exist.

Closes #178

Signed-off-by: Luis Pabón <[email protected]>
  • Loading branch information
lpabon committed Mar 18, 2021
1 parent 798a696 commit 6d77c5a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/plugin/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (

"github.com/portworx/pxc/pkg/config"
"github.com/portworx/pxc/pkg/util"
"github.com/sirupsen/logrus"

"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -79,7 +78,6 @@ func (o *PluginLister) GetList() ([]*Component, error) {
files, err := ioutil.ReadDir(dir)
if err != nil {
if _, ok := err.(*os.PathError); ok {
logrus.Warnf("Unable read directory %q from your PATH: %v. Skipping...", dir, err)
continue
}

Expand Down

0 comments on commit 6d77c5a

Please sign in to comment.