Skip to content

Commit

Permalink
adjust outgoing WNM data_id
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Jan 29, 2024
1 parent 7db535c commit 861e737
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions msc_wis2node/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 861e737

Please sign in to comment.