Skip to content

Commit 676b329

Browse files
authored
Removing null characters while decoding from syseeprom (sonic-net#338)
Signed-off-by: Mihir Patel <patelmi@microsoft.com>
1 parent 32c0031 commit 676b329

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py

+1
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ def decoder(self, s, t):
522522
value = ""
523523
for c in t[2:2 + t[1]]:
524524
value += "0x%02X " % c
525+
value = value.replace('\x00', '')
525526
return name, value
526527

527528

0 commit comments

Comments
 (0)