From 627637c45a3349bd2ed9493f2350f62aa66dbc87 Mon Sep 17 00:00:00 2001 From: Quan Tian Date: Thu, 7 Dec 2023 13:42:19 +0800 Subject: [PATCH] Fix error message of cniServer.Initialize (#5776) Signed-off-by: Quan Tian --- cmd/antrea-agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/antrea-agent/agent.go b/cmd/antrea-agent/agent.go index ee294a77672..9f2eaa63eda 100644 --- a/cmd/antrea-agent/agent.go +++ b/cmd/antrea-agent/agent.go @@ -554,7 +554,7 @@ func run(o *Options) error { err = cniServer.Initialize(ovsBridgeClient, ofClient, ifaceStore, podUpdateChannel) if err != nil { - return fmt.Errorf("error initializing CNI server with cniPodInfoStore cache: %v", err) + return fmt.Errorf("error initializing CNI server: %w", err) } } else { listOptions := func(options *metav1.ListOptions) {