surveil-init: No longer require include_system_collections

Change-Id: I21eee140a494659d28a5b05bf771c0a286759b5f
This commit is contained in:
aviau 2015-06-19 09:14:40 -04:00
parent ab350f397d
commit 41fbf8a0f6

View File

@ -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})