File tree 2 files changed +3
-3
lines changed
sonic-host-services/scripts
sonic-py-common/sonic_py_common
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -954,7 +954,7 @@ class HostConfigDaemon:
954
954
def __init__ (self ):
955
955
# Just a sanity check to verify if the CONFIG_DB has been initialized
956
956
# before moving forward
957
- self .config_db = ConfigDBConnector ()
957
+ self .config_db = ConfigDBConnector (use_unix_socket_path = True )
958
958
self .config_db .connect (wait_for_init = True , retry_on = True )
959
959
self .dbconn = DBConnector (CFG_DB , 0 )
960
960
self .selector = Select ()
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def connect_config_db_for_ns(namespace=DEFAULT_NAMESPACE):
43
43
Returns:
44
44
handle to the config_db for a namespace
45
45
"""
46
- config_db = swsscommon .ConfigDBConnector (namespace = namespace )
46
+ config_db = swsscommon .ConfigDBConnector (use_unix_socket_path = True , namespace = namespace )
47
47
config_db .connect ()
48
48
return config_db
49
49
@@ -65,7 +65,7 @@ def connect_to_all_dbs_for_ns(namespace=DEFAULT_NAMESPACE):
65
65
Returns:
66
66
handle to all the dbs for a namespaces
67
67
"""
68
- db = swsscommon .SonicV2Connector (namespace = namespace )
68
+ db = swsscommon .SonicV2Connector (use_unix_socket_path = True , namespace = namespace )
69
69
db_list = list (db .get_db_list ())
70
70
if not is_supervisor ():
71
71
try :
You can’t perform that action at this time.
0 commit comments