diff --git a/wis2-gdc-management/wis2_gdc/registrar.py b/wis2-gdc-management/wis2_gdc/registrar.py index 502c744..b70a1d9 100644 --- a/wis2-gdc-management/wis2_gdc/registrar.py +++ b/wis2-gdc-management/wis2_gdc/registrar.py @@ -146,7 +146,7 @@ def register(self, metadata: dict) -> None: kpi_results['report-by'] = CENTRE_ID kpi_results['centre-id'] = self.centre_id - if PUBLISH_REPORTS: + if PUBLISH_REPORTS and 'summary' in kpi_results: LOGGER.info('Publishing KPI report to broker') self.broker.pub(topic, json.dumps(kpi_results))