Merge pull request #9215 from containers/dependabot/go_modules/github.com/containernetworking/cni-0.8.1

Bump github.com/containernetworking/cni from 0.8.0 to 0.8.1
This commit is contained in:
OpenShift Merge Robot
2021-02-03 12:07:40 -05:00
committed by GitHub
4 changed files with 9 additions and 2 deletions

View File

@ -18,6 +18,7 @@ import (
"fmt"
"os"
"path/filepath"
"strings"
)
// FindInPath returns the full path of the plugin by searching in the provided path
@ -26,6 +27,10 @@ func FindInPath(plugin string, paths []string) (string, error) {
return "", fmt.Errorf("no plugin name provided")
}
if strings.ContainsRune(plugin, os.PathSeparator) {
return "", fmt.Errorf("invalid plugin name: %s", plugin)
}
if len(paths) == 0 {
return "", fmt.Errorf("no paths provided")
}