Commit 0f71f292 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-avs-config-215' into 'microservices'

Fix selfmong default config.

See merge request !1189
parents 27bb88b3 768a031c
Pipeline #8174 passed with stages
in 5 minutes and 57 seconds
......@@ -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