Skip to content

Commit

Permalink
Allowing TCP connections with namespace as well. (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
judyjoseph authored Jul 6, 2020
1 parent a4d40f2 commit 2df4f40
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/swsssdk/dbconnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,6 @@ def __init__(self, use_unix_socket_path=False, namespace=None, **kwargs):
"""
self.namespace = namespace

# The TCP connection to a DB in another namespace in not supported.
if namespace is not None and use_unix_socket_path == False:
message = "TCP connectivity to the DB instance in a different namespace is not implemented!"
raise NotImplementedError(message)

for db_name in self.get_db_list():
# set a database name as a constant value attribute.
setattr(self, db_name, db_name)
Expand Down

0 comments on commit 2df4f40

Please sign in to comment.