Skip to content

Commit eccdc28

Browse files
committed
fix dirpath for date-based subscriptions
1 parent 121d9f8 commit eccdc28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

msc-wis2node-management/msc_wis2node/publisher.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ def _subtopic2dirpath(self, subtopic: str) -> str:
235235

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

238-
dirpath = '/' + subtopic.replace('.', '/').rstrip('/#')
238+
dirpath = '/' + subtopic.replace('*.', '/').replace('.', '/').rstrip('/#')
239+
dirpath = dirpath.replace('//', '/')
239240
dirpath = f'*{dirpath}*'
240241

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

0 commit comments

Comments
 (0)