def _autoserv_command_line(machines, profiles, extra_args, job=None, queue_entry=None, verbose=True):
 autoserv_argv = [_autoserv_path, '-p', '-r', drone_manager.WORKING_DIRECTORY]
 if machines:
  if profiles:
   machines = [('%s#%s' % (m, p)) for (m, p) in zip(machines, profiles)]
  autoserv_argv += ['-m', ','.join(machines)]
 if (job or queue_entry):
  if (not job):
   job = queue_entry.job
  autoserv_argv += ['-u', job.owner, '-l', job.name]
 if verbose:
  autoserv_argv.append('--verbose')
 return (autoserv_argv + extra_args)

def _autoserv_command_line ( machines , profiles , extra_args , job = None , queue_entry = None , verbose = True ) : autoserv_argv = [ _autoserv_path , '-p' , '-r' , drone_manager . WORKING_DIRECTORY ] if machines : if profiles : machines = [ ( '%s#%s' % ( m , p ) ) for ( m , p ) in zip ( machines , profiles ) ] autoserv_argv += [ '-m' , ',' . join ( machines ) ] if ( job or queue_entry ) : if ( not job ) : job = queue_entry . job autoserv_argv += [ '-u' , job . owner , '-l' , job . name ] if verbose : autoserv_argv . append ( '--verbose' ) return ( autoserv_argv + extra_args )
builds an autoserv command line composed of the executable and parameters :type machines: list .