Skip to content

Commit

Permalink
Merge pull request #470 from mssonicbld/sonicbld/202305-merge
Browse files Browse the repository at this point in the history
[code sync] Merge code from sonic-net/sonic-buildimage:202305 to 202305
  • Loading branch information
mssonicbld authored Oct 12, 2024
2 parents 0b469b1 + 3e95fb8 commit c14d30b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@


try:
import os
import binascii
import redis
import struct
Expand Down Expand Up @@ -304,7 +305,7 @@ def __init__(self, is_plugin=False):
super(EepromS6000, self).__init__(self.eeprom_path, None, 0, '', True)

if not is_plugin:
self.eeprom_data = self.read_eeprom()
self.eeprom_data = "N/A" if os.geteuid() != 0 else self.read_eeprom()

def _is_valid_block_checksum(self, e):
crc = self.compute_dell_crc(e[:-2])
Expand Down

0 comments on commit c14d30b

Please sign in to comment.