Skip to content

Commit

Permalink
[write standby] force DB connections to use unix socket to connect (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
mssonicbld authored Apr 23, 2023
1 parent 727afb5 commit e0ef5b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/scripts/write_standby.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def config_db(self):
Initializes the connector during the first call
"""
if self.config_db_connector is None:
self.config_db_connector = ConfigDBConnector()
self.config_db_connector = ConfigDBConnector(use_unix_socket_path=True)
self.config_db_connector.connect()

return self.config_db_connector
Expand Down Expand Up @@ -69,7 +69,7 @@ def asic_db(self):
Initializes the connector during the first call
"""
if self.asic_db_connector is None:
self.asic_db_connector = SonicV2Connector()
self.asic_db_connector = SonicV2Connector(use_unix_socket_path=True)
self.asic_db_connector.connect('ASIC_DB')

return self.asic_db_connector
Expand Down

0 comments on commit e0ef5b9

Please sign in to comment.