@@ -15,7 +15,7 @@ import (
1515 "github.com/Azure/azure-container-networking/cni"
1616 "github.com/Azure/azure-container-networking/cni/api"
1717 "github.com/Azure/azure-container-networking/cni/log"
18- "github.com/Azure/azure-container-networking/cni/telemetry/client"
18+ telemetryclient "github.com/Azure/azure-container-networking/cni/telemetry/client"
1919 "github.com/Azure/azure-container-networking/cni/util"
2020 "github.com/Azure/azure-container-networking/cns"
2121 cnscli "github.com/Azure/azure-container-networking/cns/client"
@@ -294,7 +294,7 @@ func (plugin *NetPlugin) getPodInfo(args string) (name, ns string, err error) {
294294 return k8sPodName , k8sNamespace , nil
295295}
296296
297- func (plugin * NetPlugin ) setCNIReportDetails (containerID string , opType , msg string ) {
297+ func (plugin * NetPlugin ) setCNIReportDetails (containerID , opType , msg string ) {
298298 telemetry .CNIReportSettings .OperationType = opType
299299 telemetry .CNIReportSettings .SubContext = containerID
300300 telemetry .CNIReportSettings .EventMessage = msg
@@ -1095,7 +1095,7 @@ func (plugin *NetPlugin) Delete(args *cniSkel.CmdArgs) error {
10951095
10961096 logger .Warn ("Release ip by ContainerID (endpoint not found)" ,
10971097 zap .String ("containerID" , args .ContainerID ))
1098- telemetry .SendEvent (fmt . Sprintf ( "Release ip by ContainerID (endpoint not found): %s" , args .ContainerID ) )
1098+ telemetry .SendEvent ("Release ip by ContainerID (endpoint not found): " + args .ContainerID )
10991099 if err = plugin .ipamInvoker .Delete (nil , nwCfg , args , nwInfo .Options ); err != nil {
11001100 return plugin .RetriableError (fmt .Errorf ("failed to release address(no endpoint): %w" , err ))
11011101 }
0 commit comments