def show_dry_run(ilo, action, **kwargs):
 logger.info('DRY-RUN MODE.  No changes will be made.')
 logger.info('(CLOSED) indices may be shown that may not be acted on by action "{0}".'.format(action))
 indices = sorted(ilo.indices)
 for idx in indices:
  index_closed = (ilo.index_info[idx]['state'] == 'close')
  logger.info('DRY-RUN: {0}: {1}{2} with arguments: {3}'.format(action, idx, (' (CLOSED)' if index_closed else ''), kwargs))

def show_dry_run ( ilo , action , ** kwargs ) : logger . info ( 'DRY-RUN MODE.  No changes will be made.' ) logger . info ( '(CLOSED) indices may be shown that may not be acted on by action "{0}".' . format ( action ) ) indices = sorted ( ilo . indices ) for idx in indices : index_closed = ( ilo . index_info [ idx ] [ 'state' ] == 'close' ) logger . info ( 'DRY-RUN: {0}: {1}{2} with arguments: {3}' . format ( action , idx , ( ' (CLOSED)' if index_closed else '' ) , kwargs ) )
log dry run output with the action which would have been executed .