Skip to content

Commit

Permalink
Merge pull request #1185 from TianZong48/fix-error
Browse files Browse the repository at this point in the history
Fix: error message
  • Loading branch information
AkihiroSuda committed Jul 4, 2022
2 parents 7dc4b01 + fb3eb33 commit 0ca285e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/netutil/netutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (e *CNIEnv) GenerateNetworkConfig(labels []string, id int, name string, plu
for _, f := range plugins {
p := filepath.Join(e.Path, f.GetPluginType())
if _, err := exec.LookPath(p); err != nil {
return nil, fmt.Errorf("needs CNI plugin %q to be installed in CNI_PATH (%q), see https://github.com/containernetworking/plugins/releases: %w", f, e.Path, err)
return nil, fmt.Errorf("needs CNI plugin %q to be installed in CNI_PATH (%q), see https://github.com/containernetworking/plugins/releases: %w", f.GetPluginType(), e.Path, err)
}
}
labelsMap := strutil.ConvertKVStringsToMap(labels)
Expand Down

0 comments on commit 0ca285e

Please sign in to comment.