def prefix_indexes(config):
 if hasattr(config, 'slaveinput'):
  prefix = 'test_{[slaveid]}'.format(config.slaveinput)
 else:
  prefix = 'test'
 for (key, index) in settings.ES_INDEXES.items():
  if (not index.startswith(prefix)):
   settings.ES_INDEXES[key] = '{prefix}_amo_{index}'.format(prefix=prefix, index=index)
 settings.CACHE_PREFIX = 'amo:{0}:'.format(prefix)
 settings.KEY_PREFIX = settings.CACHE_PREFIX

def prefix_indexes ( config ) : if hasattr ( config , 'slaveinput' ) : prefix = 'test_{[slaveid]}' . format ( config . slaveinput ) else : prefix = 'test' for ( key , index ) in settings . ES_INDEXES . items ( ) : if ( not index . startswith ( prefix ) ) : settings . ES_INDEXES [ key ] = '{prefix}_amo_{index}' . format ( prefix = prefix , index = index ) settings . CACHE_PREFIX = 'amo:{0}:' . format ( prefix ) settings . KEY_PREFIX = settings . CACHE_PREFIX
prefix all es index names and cache keys with test_ and .