зеркало из https://github.com/mozilla/MozDef.git
averez-mig-bugfix: Reverse list to process old compliance checks first, older later
This commit is contained in:
Родитель
ae11b8ba66
Коммит
94b9664125
|
@ -76,6 +76,7 @@ def main():
|
|||
migjson=r.json()
|
||||
logger.debug(url)
|
||||
if migjson['collection']['items'][0]['data'][0]['value']:
|
||||
migjson['collection']['items'][0]['data'][0]['value'] = migjson['collection']['items'][0]['data'][0]['value'][::-1]
|
||||
for complianceitem in migjson['collection']['items'][0]['data'][0]['value']:
|
||||
# historical data - index the new logs
|
||||
res=es.index(index='complianceitems',doc_type='history',doc=complianceitem)
|
||||
|
|
Загрузка…
Ссылка в новой задаче