averez-mig-bugfix: Reverse list to process old compliance checks first, older later

This commit is contained in:
Anthony Verez 2014-06-26 12:14:08 -07:00
Родитель ae11b8ba66
Коммит 94b9664125
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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)