Skip to content

Commit

Permalink
fix dirpath for date-based subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Feb 19, 2025
1 parent 121d9f8 commit eccdc28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msc-wis2node-management/msc_wis2node/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ def _subtopic2dirpath(self, subtopic: str) -> str:

LOGGER.debug(f'AMQP subtopic: {subtopic}')

dirpath = '/' + subtopic.replace('.', '/').rstrip('/#')
dirpath = '/' + subtopic.replace('*.', '/').replace('.', '/').rstrip('/#')

Check failure on line 238 in msc-wis2node-management/msc_wis2node/publisher.py

View workflow job for this annotation

GitHub Actions / flake8_py3

msc-wis2node-management/msc_wis2node/publisher.py#L238

[E501] line too long
dirpath = dirpath.replace('//', '/')
dirpath = f'*{dirpath}*'

LOGGER.debug(f'directory path: {dirpath}')
Expand Down

0 comments on commit eccdc28

Please sign in to comment.