Skip to content

Commit

Permalink
[eeprom] Fix eeprom.py (#2345)
Browse files Browse the repository at this point in the history
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
  • Loading branch information
mykolaf authored Dec 4, 2018
1 parent e9b442b commit 7f3f09d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion device/mellanox/x86_64-mlnx_msn2700-r0/plugins/eeprom.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import warnings
import os
import sys
import syslog
from cStringIO import StringIO
from sonic_eeprom import eeprom_base
from sonic_eeprom import eeprom_tlvinfo
Expand Down Expand Up @@ -45,7 +46,7 @@ def __init__(self, name, path, cpld_root, ro):
else:
break

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

Expand Down

0 comments on commit 7f3f09d

Please sign in to comment.