Skip to content

Commit 0d9d86b

Browse files
[platform] Remove the trailing space of vendor extension in eeprom.py for IX7 to sync with ansible/lab in sonic-mgmt
1 parent f498c46 commit 0d9d86b

File tree

1 file changed

+2
-1
lines changed
  • platform/broadcom/sonic-platform-modules-quanta/ix7-32x/sonic_platform

1 file changed

+2
-1
lines changed

platform/broadcom/sonic-platform-modules-quanta/ix7-32x/sonic_platform/eeprom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77

88
try:
9-
from sonic_eeprom import eeprom_tlvinfo
9+
from sonic_eeprom import eeprom_tlvinfo
1010
except ImportError as e:
1111
raise ImportError(str(e) + "- required module not found")
1212

@@ -169,6 +169,7 @@ def decoder(self, s, t):
169169
if self._TLV_DISPLAY_VENDOR_EXT:
170170
for c in t[2:2 + t[1]]:
171171
value += "0x%02X " % c
172+
value = value.strip() # Remove the trailing space
172173
elif t[0] == self._TLV_CODE_CRC_32 and len(t) == 6:
173174
name = "CRC-32"
174175
value = "0x%08X" % ((t[2] << 24) | (t[3] << 16) | (t[4] << 8) | t[5])

0 commit comments

Comments
 (0)