Skip to content

Commit

Permalink
Rebasing again and taking only the changes in file daemon_base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
judyjoseph committed Aug 19, 2020
1 parent da69d57 commit e9d7edc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sonic-py-common/sonic_py_common/daemon_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@
EEPROM_MODULE_NAME = 'eeprom'
EEPROM_CLASS_NAME = 'board'

# The empty namespace refers to linux host namespace.
EMPTY_NAMESPACE = ''

#
# Helper functions =============================================================
#

def db_connect(db_name):
def db_connect(db_name, namespace=EMPTY_NAMESPACE):
from swsscommon import swsscommon
return swsscommon.DBConnector(db_name, REDIS_TIMEOUT_MSECS, True)
return swsscommon.DBConnector(db_name, REDIS_TIMEOUT_MSECS, True, namespace)

#
# DaemonBase ===================================================================
Expand Down

0 comments on commit e9d7edc

Please sign in to comment.