@click.command(name='open')
@click.option('--ignore_empty_list', is_flag=True, help='Do not raise exception if there are no actionable indices')
@click.option('--filter_list', callback=validate_filter_json, help='JSON string representing an array of filters.', required=True)
@click.pass_context
def open_singleton(ctx, ignore_empty_list, filter_list):
 action = 'open'
 action_class = CLASS_MAP[action]
 c_args = ctx.obj['config']['client']
 client = get_client(**c_args)
 logger = logging.getLogger(__name__)
 logger.debug('Validating provided filters: {0}'.format(filter_list))
 clean_filters = {'filters': filter_schema_check(action, filter_list)}
 ilo = IndexList(client)
 _do_filters(ilo, clean_filters, ignore_empty_list)
 action_obj = action_class(ilo)
 _actionator(action, action_obj, dry_run=ctx.parent.params['dry_run'])

@ click . command ( name = 'open' ) @ click . option ( '--ignore_empty_list' , is_flag = True , help = 'Do not raise exception if there are no actionable indices' ) @ click . option ( '--filter_list' , callback = validate_filter_json , help = 'JSON string representing an array of filters.' , required = True ) @ click . pass_context def open_singleton ( ctx , ignore_empty_list , filter_list ) : action = 'open' action_class = CLASS_MAP [ action ] c_args = ctx . obj [ 'config' ] [ 'client' ] client = get_client ( ** c_args ) logger = logging . getLogger ( __name__ ) logger . debug ( 'Validating provided filters: {0}' . format ( filter_list ) ) clean_filters = { 'filters' : filter_schema_check ( action , filter_list ) } ilo = IndexList ( client ) _do_filters ( ilo , clean_filters , ignore_empty_list ) action_obj = action_class ( ilo ) _actionator ( action , action_obj , dry_run = ctx . parent . params [ 'dry_run' ] )
open indices .