mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-07-09 10:15:08 +00:00
take 3
This commit is contained in:
+3
-1
@@ -496,7 +496,9 @@ def _main():
|
||||
elastic.set_hosts(opts.elasticsearch_hosts,
|
||||
opts.elasticsearch_ssl,
|
||||
opts.elasticsearch_ssl_cert_path,
|
||||
timeout=opts.elasticsearch_timeout,elesticsearch_username,elasticsearch_password)
|
||||
opts.elesticsearch_username,
|
||||
opts.elasticsearch_password,
|
||||
timeout=opts.elasticsearch_timeout)
|
||||
elastic.migrate_indexes(aggregate_indexes=[es_aggregate_index],
|
||||
forensic_indexes=[es_forensic_index])
|
||||
except elastic.ElasticsearchError as error:
|
||||
|
||||
@@ -171,7 +171,7 @@ class AlreadySaved(ValueError):
|
||||
"""Raised when a report to be saved matches an existing report"""
|
||||
|
||||
|
||||
def set_hosts(hosts, use_ssl=False, ssl_cert_path=None, timeout=60.0, username, password):
|
||||
def set_hosts(hosts, use_ssl=False, ssl_cert_path=None, username=None, password=None, timeout=60.0):
|
||||
"""
|
||||
Sets the Elasticsearch hosts to use
|
||||
|
||||
|
||||
Reference in New Issue
Block a user