Skip to content

Commit

Permalink
Add a new line change
Browse files Browse the repository at this point in the history
  • Loading branch information
xumia committed Jul 13, 2021
1 parent 7568463 commit 2c703cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/swsssdk/dbconnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def get_socket(db_name, namespace=None):
@staticmethod
def get_hostname(db_name, namespace=None):
namespace = SonicDBConfig.EMPTY_NAMESPACE(namespace)
if namespace == None:
namespace = None
if not SonicDBConfig._sonic_db_config_init:
SonicDBConfig.load_sonic_db_config()
return SonicDBConfig.get_instance(db_name, namespace)["hostname"]
Expand Down

0 comments on commit 2c703cc

Please sign in to comment.