surveil-init: No longer require include_system_collections
Change-Id: I21eee140a494659d28a5b05bf771c0a286759b5f
This commit is contained in:
parent
ab350f397d
commit
41fbf8a0f6
@ -73,7 +73,9 @@ def main():
|
||||
mongo = mongo_client.MongoClient(options.mongo_uri)
|
||||
mongo_shinken = mongo.shinken
|
||||
for collection in (
|
||||
mongo_shinken.collection_names(include_system_collections=False)
|
||||
[c for c
|
||||
in mongo_shinken.collection_names()
|
||||
if not c.startswith("system.")]
|
||||
):
|
||||
mongo_shinken[collection].remove({'SURVEIL_PACK_NAME': pack_name})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user