Skip to content

Commit

Permalink
safeguard wmo:topic deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Nov 27, 2023
1 parent 37d2ccb commit cbb0af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wis2_gdc/registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def is_wis2_mqtt_link(link) -> bool:
channel = value.get('wmo:topic', value.get('channel'))

new_link = value
del new_link['wmo:topic']
_ = new_link.pop('wmo:topic', None)

new_link['rel'] = 'items'
new_link['channel'] = channel.replace('origin', 'cache')
Expand Down

0 comments on commit cbb0af5

Please sign in to comment.