From 861e737735a3bfa3ef074c00c603c72f0ee63608 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Mon, 29 Jan 2024 14:18:18 +0000 Subject: [PATCH] adjust outgoing WNM data_id --- msc_wis2node/publisher.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/msc_wis2node/publisher.py b/msc_wis2node/publisher.py index 5f92310..2603a6f 100644 --- a/msc_wis2node/publisher.py +++ b/msc_wis2node/publisher.py @@ -168,6 +168,11 @@ def publish_to_wis2(self, dataset: str, url: str) -> None: url=url ) + LOGGER.debug('Removing system and version from data_id') + data_id = message['properties']['data_id'] + tokens = data_id.split('/') + message['properties']['data_id'] = '/'.join(tokens[2:]) + LOGGER.debug(json.dumps(message, indent=4)) LOGGER.info('Publishing WIS2 notification message')