add context

Signed-off-by: YiscahLevySilas1 <yiscahls@armosec.io>
This commit is contained in:
YiscahLevySilas1
2023-02-05 12:03:10 +02:00
parent c6eff8cbaa
commit 9f97f91f32
2 changed files with 3 additions and 3 deletions

View File

@@ -344,7 +344,7 @@ func (hsh *HostSensorHandler) CollectResources(ctx context.Context) ([]hostsenso
}
// GetCNIInfo
kcData, err = hsh.GetCNIInfo()
kcData, err = hsh.GetCNIInfo(ctx)
if err != nil {
addInfoToMap(CNIInfo, infoMap, err)
logger.L().Warning(err.Error())