Updaed PR#5191 point (b) as we have moved to use
name in DB Connector. sonic-platform-daemons is updated accordingly. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
This commit is contained in:
parent
389c5fe5ea
commit
1beeea210c
@ -9,8 +9,6 @@ from .logger import Logger
|
||||
# Constants ====================================================================
|
||||
#
|
||||
# Redis DB information
|
||||
REDIS_HOSTNAME = 'localhost'
|
||||
REDIS_PORT = 6379
|
||||
REDIS_TIMEOUT_MSECS = 0
|
||||
|
||||
|
||||
@ -21,12 +19,9 @@ EEPROM_CLASS_NAME = 'board'
|
||||
# Helper functions =============================================================
|
||||
#
|
||||
|
||||
def db_connect(db):
|
||||
def db_connect(db_name):
|
||||
from swsscommon import swsscommon
|
||||
return swsscommon.DBConnector(db,
|
||||
REDIS_HOSTNAME,
|
||||
REDIS_PORT,
|
||||
REDIS_TIMEOUT_MSECS)
|
||||
return swsscommon.DBConnector(db_name, REDIS_TIMEOUT_MSECS, True)
|
||||
|
||||
#
|
||||
# DaemonBase ===================================================================
|
||||
|
Reference in New Issue
Block a user