Skip to content

Commit cc235c0

Browse files
Remove null bytes in the SNMP test (sonic-net#17321)
1 parent b4d9ba8 commit cc235c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/snmp/test_snmp_phy_entity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ def run_cmd(cmd):
827827
if not output:
828828
return {}
829829
# fix to make literal_eval() work with nested dictionaries
830-
content = output.replace("'{", '"{').replace("}'", '}"')
830+
content = output.replace('\x00', '').replace("'{", '"{').replace("}'", '}"')
831831
return ast.literal_eval(content)
832832

833833
if duthost.is_multi_asic:

0 commit comments

Comments
 (0)