Skip to content

Commit

Permalink
Merge pull request #301 from gbregman/devel
Browse files Browse the repository at this point in the history
Make sure to convert enum key to proper case before fetching the enum value
  • Loading branch information
gbregman authored Oct 31, 2023
2 parents 792b9c0 + 86ba757 commit 6fa029d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,12 +731,12 @@ def reply_get_log_page(self, conn, data, cmd_id):
log_entry_counter = 0
while log_entry_counter < len(allow_listeners):
log_entry = DiscoveryLogEntry()
trtype = TRANSPORT_TYPES[allow_listeners[log_entry_counter]["trtype"]]
trtype = TRANSPORT_TYPES[allow_listeners[log_entry_counter]["trtype"].upper()]
if trtype is None:
self.logger.error("unsupported transport type")
else:
log_entry.trtype = trtype
adrfam = ADRFAM_TYPES[allow_listeners[log_entry_counter]["adrfam"]]
adrfam = ADRFAM_TYPES[allow_listeners[log_entry_counter]["adrfam"].lower()]
if adrfam is None:
self.logger.error("unsupported adress family")
else:
Expand Down

0 comments on commit 6fa029d

Please sign in to comment.