Update nosql_mongodb.py
This commit is contained in:
parent
1c4140daec
commit
5c77dd91e7
|
|
@ -170,7 +170,7 @@ class nosqlMongodb():
|
|||
keys = ["bind_ip", "port"]
|
||||
|
||||
result['host'] = '127.0.0.1'
|
||||
rep = 'port\s*=\s*(.*)'
|
||||
rep = r'port\s*=\s*(.*)'
|
||||
ip_re = re.search(rep, mgdb_content)
|
||||
if ip_re:
|
||||
result['port'] = int(ip_re.groups()[0].strip())
|
||||
|
|
|
|||
Loading…
Reference in New Issue