From 22393f7e30332a4e5f026ed009ce303f1615a446 Mon Sep 17 00:00:00 2001 From: Papa Bakary Camara Date: Thu, 1 Aug 2024 15:12:01 +0200 Subject: [PATCH] Do not expect info field in received report --- consumer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consumer.go b/consumer.go index c776c85..f5a0a43 100644 --- a/consumer.go +++ b/consumer.go @@ -538,13 +538,14 @@ func checkReportStructure(r Report) error { // the structure is not well defined yet, so all we should do is to check if all keys are there expectedKeys := []string{ fingerprintsAttribute, - infoAttribute, reportsAttribute, systemAttribute, } // 'skips' key is now optional, we should not expect it anymore: // https://github.com/RedHatInsights/insights-results-aggregator/issues/1206 + // Simialrly, 'info' key is now optional too. + // https://github.com/RedHatInsights/insights-results-aggregator/pull/1996 // expectedKeys := []string{"fingerprints", "info", "reports", "skips", "system"} // check if the structure contains all expected keys