From 5b35fe399c13afae9a252505f6b3db6a5d660196 Mon Sep 17 00:00:00 2001 From: Anthony Verez Date: Thu, 19 Jun 2014 15:31:33 -0700 Subject: [PATCH] averez-114-snapshots: fix indentation for indices rotation --- cron/rotateIndexes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cron/rotateIndexes.py b/cron/rotateIndexes.py index e74384a8..cfc7ed14 100755 --- a/cron/rotateIndexes.py +++ b/cron/rotateIndexes.py @@ -58,10 +58,10 @@ def esRotateIndexes(): if oldindex == newindex: logger.debug('do not rotate %s index, month has not changed yet' % index) continue - logger.debug('Creating %s index' % newindex) - es.indices.create_index(newindex) - logger.debug('Updating %s alias to new index' % index) - es.indices.set_alias(index, newindex) + logger.debug('Creating %s index' % newindex) + es.indices.create_index(newindex) + logger.debug('Updating %s alias to new index' % index) + es.indices.set_alias(index, newindex) if oldindex in indices: logger.debug('Updating %s-previous alias to old index' % index) es.indices.set_alias('%s-previous' % index, oldindex)