From 676b329efd1b8cbe30b6e874308cd1ccf69466f8 Mon Sep 17 00:00:00 2001 From: mihirpat1 <112018033+mihirpat1@users.noreply.github.com> Date: Mon, 19 Dec 2022 11:18:10 -0800 Subject: [PATCH] Removing null characters while decoding from syseeprom (#338) Signed-off-by: Mihir Patel --- sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py b/sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py index e81e16444df8..f8dd32807a8b 100644 --- a/sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py +++ b/sonic_platform_base/sonic_eeprom/eeprom_tlvinfo.py @@ -522,6 +522,7 @@ def decoder(self, s, t): value = "" for c in t[2:2 + t[1]]: value += "0x%02X " % c + value = value.replace('\x00', '') return name, value