This commit is contained in:
Ubuntu
2020-10-20 01:27:45 +11:00
parent a36dc21c07
commit de02edc0a9
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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:
+1 -1
View File
@@ -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