Skip to content

Commit 4a97303

Browse files
committed
fix condition
1 parent 19b4227 commit 4a97303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cni/network/plugin/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ func rootExecute() error {
103103
if err = netPlugin.Plugin.InitializeKeyValueStore(&config); err != nil {
104104
network.PrintCNIError(fmt.Sprintf("Failed to initialize key-value store of network plugin: %v", err))
105105

106-
if telemetry.AIClient.IsConnected() {
107-
logger.Error("Not connected to telemetry service")
106+
if !telemetry.AIClient.IsConnected() {
107+
logger.Error("Not connected to telemetry service, skipping sending error to application insights")
108108
return errors.Wrap(err, "lock acquire error")
109109
}
110110
telemetry.AIClient.SendError(err)

0 commit comments

Comments
 (0)