Commit 768a031c authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix selfmong default config.

parent 27bb88b3
......@@ -466,6 +466,12 @@ class Config(BaseConfig):
class selfmon(ConfigSection):
enable_managedobject = BooleanParameter(default=True)
managedobject_ttl = IntParameter(default=30)
enable_task = BooleanParameter(default=False)
task_ttl = IntParameter(default=30)
enable_inventory = BooleanParameter(default=False)
inventory_ttl = IntParameter(default=30)
enable_fm = BooleanParameter(default=False)
fm_ttl = IntParameter(default=30)
class sentry(ConfigSection):
url = StringParameter(default="")
......
......@@ -58,10 +58,20 @@ RECURSIVE_REFERENCE_CONSTANT = "self"
def get_connection():
"""
:return:
:rtype: pymongo.collection.Connection
"""
return mongoengine.connection._get_connection()
def get_db():
"""
:return:
:rtype: pymongo.database.Database
"""
return mongoengine.connection._get_db()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment