Skip to content

Commit 183162f

Browse files
Fix issue: expect redis pubsub data to be str type instead of bytes type (sonic-net#196)
**- What I did** Change redis pubsub expect data type from bytes to str. There was a snmpagent framework change which transfer redis pubsub data from bytes to str, after that change, there is no need for non-framework code to do this transfer. So now we need handle str data directly. **- How I did it** Change data expectation from bytes to str **- How to verify it** Run regression and manual test
1 parent 3885f19 commit 183162f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sonic_ax_impl/mibs/ietf/rfc2737.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ def _update_per_namespace_data(self, pubsub):
675675

676676
db_entry = msg["channel"].split(":")[-1]
677677
data = msg['data'] # event data
678-
if not isinstance(data, bytes):
678+
if not isinstance(data, str):
679679
continue
680680

681681
# extract interface name

0 commit comments

Comments
 (0)