def machine_get_idx_by_hostname(hostname):
 machine = machine_get_by_hostname(hostname)
 if (machine is None):
  return None
 return machine.machine_idx

def machine_get_idx_by_hostname ( hostname ) : machine = machine_get_by_hostname ( hostname ) if ( machine is None ) : return None return machine . machine_idx
return the job id based on the job tag .