mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix for pymongo > 3.0 and connection support of MongoClient only
https://api.mongodb.com/python/current/changelog.html#mongoclient-changes
This commit is contained in:
parent
d42751c908
commit
d1ca98563b
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ import pymongo
|
||||||
def _get_members():
|
def _get_members():
|
||||||
host = os.environ.get('host', '127.0.0.1')
|
host = os.environ.get('host', '127.0.0.1')
|
||||||
port = os.environ.get('port', 27017)
|
port = os.environ.get('port', 27017)
|
||||||
conn = pymongo.Connection(host,port)
|
conn = pymongo.MongoClient(host,port)
|
||||||
repl_status = conn.admin.command("replSetGetStatus")
|
repl_status = conn.admin.command("replSetGetStatus")
|
||||||
|
|
||||||
members = {}
|
members = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue