averez-114-snapshots: fix indentation for indices rotation

This commit is contained in:
Anthony Verez 2014-06-19 15:31:33 -07:00
Родитель b1b5315599
Коммит 5b35fe399c
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -58,10 +58,10 @@ def esRotateIndexes():
if oldindex == newindex: if oldindex == newindex:
logger.debug('do not rotate %s index, month has not changed yet' % index) logger.debug('do not rotate %s index, month has not changed yet' % index)
continue continue
logger.debug('Creating %s index' % newindex) logger.debug('Creating %s index' % newindex)
es.indices.create_index(newindex) es.indices.create_index(newindex)
logger.debug('Updating %s alias to new index' % index) logger.debug('Updating %s alias to new index' % index)
es.indices.set_alias(index, newindex) es.indices.set_alias(index, newindex)
if oldindex in indices: if oldindex in indices:
logger.debug('Updating %s-previous alias to old index' % index) logger.debug('Updating %s-previous alias to old index' % index)
es.indices.set_alias('%s-previous' % index, oldindex) es.indices.set_alias('%s-previous' % index, oldindex)