Skip to content

Commit

Permalink
Merge pull request #692 from mars1024/bugfix/validatePlugin
Browse files Browse the repository at this point in the history
libcni: find plugin in exec
  • Loading branch information
dcbw authored Jul 25, 2019
2 parents df124b2 + 1318d7c commit d34f7f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcni/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ func (c *CNIConfig) ValidateNetwork(ctx context.Context, net *NetworkConfig) ([]

// validatePlugin checks that an individual plugin's configuration is sane
func (c *CNIConfig) validatePlugin(ctx context.Context, pluginName, expectedVersion string) error {
pluginPath, err := invoke.FindInPath(pluginName, c.Path)
c.ensureExec()
pluginPath, err := c.exec.FindInPath(pluginName, c.Path)
if err != nil {
return err
}
Expand Down

0 comments on commit d34f7f4

Please sign in to comment.