Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

If a single mongo server is specified using the -m flag, it will be s…

…et as the default connection.
  • Loading branch information...
commit b5dc35ca522a8ba84328a9b12769a0d167f3a702 1 parent 6a9fe32
@jeffmax jeffmax authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 handlers.py
View
8 handlers.py
@@ -35,9 +35,11 @@ def __init__(self, mongos):
args = MongoFakeFieldStorage({"server" : host})
out = MongoFakeStream()
-
- name = host.replace(".", "")
- name = name.replace(":", "")
+ if len(mongos) == 1:
+ name = "default"
+ else:
+ name = host.replace(".", "")
+ name = name.replace(":", "")
self._connect(args, out.ostream, name = name)
Please sign in to comment.
Something went wrong with that request. Please try again.