mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-11-21 22:42:39 +00:00
Fix elasticsearch index creation
This commit is contained in:
1 parent
6b3a51a3f0
commit
a2998f3968
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -30,8 +30,8 @@ script:
|
||||
- "cd .."
|
||||
- "coverage run tests.py"
|
||||
- "python setup.py install"
|
||||
- "parsedmarc -c ci.ini samples/aggregate/*"
|
||||
- "parsedmarc -c ci.ini samples/forensic/*"
|
||||
- "parsedmarc --debug -c ci.ini samples/aggregate/*"
|
||||
- "parsedmarc --debug -c ci.ini samples/forensic/*"
|
||||
- "python setup.py sdist"
|
||||
- "python setup.py bdist_wheel"
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ def create_indexes(names, settings=None):
|
||||
if settings is None:
|
||||
settings = dict(number_of_shards=1,
|
||||
number_of_replicas=1)
|
||||
index.put_settings(settings)
|
||||
index.put_settings(body=settings, preserve_existing=True)
|
||||
index.create()
|
||||
except Exception as e:
|
||||
raise ElasticsearchError(
|
||||
|
||||
Reference in new issue
Block a user