diff --git a/src/swsssdk/dbconnector.py b/src/swsssdk/dbconnector.py index c5bc26d1..34cf3f95 100644 --- a/src/swsssdk/dbconnector.py +++ b/src/swsssdk/dbconnector.py @@ -226,7 +226,7 @@ def get_separator(db_name, namespace=None): class SonicV2Connector(object): def __init__(self, use_unix_socket_path=False, namespace=None, **kwargs): self.dbintf = DBInterface(**kwargs) - self.use_unix_socket_path = use_unix_socket_path + self.use_unix_socket_path = True if use_unix_socket_path and os.getuid() == 0 else False """If the user don't give the namespace as input, it refers to the local namespace where this application is run. (It could be a network namespace or linux host namesapce)