Skip to content

Commit 7f3f09d

Browse files
authored
[eeprom] Fix eeprom.py (#2345)
Signed-off-by: Mykola Faryma <[email protected]>
1 parent e9b442b commit 7f3f09d

File tree

1 file changed

+2
-1
lines changed
  • device/mellanox/x86_64-mlnx_msn2700-r0/plugins

1 file changed

+2
-1
lines changed

device/mellanox/x86_64-mlnx_msn2700-r0/plugins/eeprom.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import warnings
1818
import os
1919
import sys
20+
import syslog
2021
from cStringIO import StringIO
2122
from sonic_eeprom import eeprom_base
2223
from sonic_eeprom import eeprom_tlvinfo
@@ -45,7 +46,7 @@ def __init__(self, name, path, cpld_root, ro):
4546
else:
4647
break
4748

48-
if not (os.path.islink(EEPROM_SYMLINK) or os.isfile(CACHE_FILE)):
49+
if not (os.path.exists(EEPROM_SYMLINK) or os.path.isfile(CACHE_FILE)):
4950
log_error("Nowhere to read syseeprom from! No symlink or cache file found")
5051
raise RuntimeError("No syseeprom symlink or cache file found")
5152

0 commit comments

Comments
 (0)