Skip to content

Commit

Permalink
Support default namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ganglyu committed Dec 19, 2023
1 parent ddc99b8 commit 7f55dc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/db_migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
pass

SYSLOG_IDENTIFIER = 'db_migrator'
DEFAULT_NAMESPACE = ''


# Global logger instance
Expand Down Expand Up @@ -65,6 +66,8 @@ def __init__(self, namespace, socket=None):
if namespace is None:
self.__golden_config_data = golden_data
else:
if namespace == DEFAULT_NAMESPACE:
namespace = "localhost"
self.__golden_config_data = golden_data[namespace]
except Exception as e:
log.log_error('Caught exception while trying to load golden config: ' + str(e))
Expand Down

0 comments on commit 7f55dc9

Please sign in to comment.