def abort_import(handler, host=None, core_name=None, verbose=False):
 if ((not _is_master()) and (_get_none_or_value(host) is None)):
  err = ['solr.abort_import can only be called on "master" minions']
  return _get_return_dict(False, errors=err)
 if ((_get_none_or_value(core_name) is None) and _check_for_cores()):
  err = ['No core specified when minion is configured as "multi-core".']
  return _get_return_dict(False, err)
 params = ['command=abort']
 if verbose:
  params.append('verbose=true')
 url = _format_url(handler, host=host, core_name=core_name, extra=params)
 return _http_request(url)

def abort_import ( handler , host = None , core_name = None , verbose = False ) : if ( ( not _is_master ( ) ) and ( _get_none_or_value ( host ) is None ) ) : err = [ 'solr.abort_import can only be called on "master" minions' ] return _get_return_dict ( False , errors = err ) if ( ( _get_none_or_value ( core_name ) is None ) and _check_for_cores ( ) ) : err = [ 'No core specified when minion is configured as "multi-core".' ] return _get_return_dict ( False , err ) params = [ 'command=abort' ] if verbose : params . append ( 'verbose=true' ) url = _format_url ( handler , host = host , core_name = core_name , extra = params ) return _http_request ( url )
master only aborts an existing import command to the specified handler .