зеркало из https://github.com/mozilla/MozDef.git
Remove unused parameter in create_index
This commit is contained in:
Родитель
a22512d197
Коммит
90895c7422
|
@ -134,7 +134,7 @@ def main():
|
|||
|
||||
es = ElasticsearchClient((list('{0}'.format(s) for s in options.esservers)))
|
||||
# create intelligence index if it's not already there
|
||||
es.create_index('intelligence', ignore_fail=True)
|
||||
es.create_index('intelligence')
|
||||
|
||||
# read in the OUI file for mac prefix to vendor dictionary
|
||||
macassignments = readOUIFile(options.ouifilename)
|
||||
|
|
|
@ -48,7 +48,7 @@ class ElasticsearchClient():
|
|||
def get_indices(self):
|
||||
return self.es_connection.indices.stats()['indices'].keys()
|
||||
|
||||
def create_index(self, index_name, ignore_fail=False, index_config=None):
|
||||
def create_index(self, index_name, index_config=None):
|
||||
if not index_config:
|
||||
index_config = '''
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче