Skip to content

Commit 413e93c

Browse files
author
Tim Vaillancourt
committed
remove 'replset/' prefix from config server hostnames
1 parent 5acdc83 commit 413e93c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MongoBackup/Sharding.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def get_configdb_hosts(self):
112112
if config_string:
113113
# noinspection PyBroadException
114114
try:
115+
if "/" in config_string:
116+
config_replset, config_string = config_string.split("/")
115117
return config_string.split(',')
116118
except Exception:
117119
return [config_string]

0 commit comments

Comments
 (0)