@require_admin_context
def _instance_get_all_uuids_by_host(context, host, session=None):
 uuids = []
 for tuple in model_query(context, models.Instance.uuid, read_deleted='no', base_model=models.Instance, session=session).filter_by(host=host).all():
  uuids.append(tuple[0])
 return uuids

@ require_admin_context def _instance_get_all_uuids_by_host ( context , host , session = None ) : uuids = [ ] for tuple in model_query ( context , models . Instance . uuid , read_deleted = 'no' , base_model = models . Instance , session = session ) . filter_by ( host = host ) . all ( ) : uuids . append ( tuple [ 0 ] ) return uuids
return a list of the instance uuids on a given host .