Skip to content

Commit 213c378

Browse files
committed
modify error output in cniNetworkPlugin
Signed-off-by: Bruce Ma <[email protected]>
1 parent 3ec5fe5 commit 213c378

File tree

1 file changed

+2
-2
lines changed
  • pkg/kubelet/dockershim/network/cni

1 file changed

+2
-2
lines changed

pkg/kubelet/dockershim/network/cni/cni.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ func getDefaultCNINetwork(confDir string, binDirs []string) (*cniNetwork, error)
191191
}
192192
}
193193
if len(confList.Plugins) == 0 {
194-
klog.Warningf("CNI config list %s has no networks, skipping", confFile)
194+
klog.Warningf("CNI config list %s has no networks, skipping", string(confList.Bytes))
195195
continue
196196
}
197197

198198
// Before using this CNI config, we have to validate it to make sure that
199199
// all plugins of this config exist on disk
200200
caps, err := cniConfig.ValidateNetworkList(context.TODO(), confList)
201201
if err != nil {
202-
klog.Warningf("Error validating CNI config %v: %v", confList, err)
202+
klog.Warningf("Error validating CNI config list %s: %v", string(confList.Bytes), err)
203203
continue
204204
}
205205

0 commit comments

Comments
 (0)