def _instance_group_id(context, group_uuid):
 result = model_query(context, models.InstanceGroup, (models.InstanceGroup.id,)).filter_by(uuid=group_uuid).first()
 if (not result):
  raise exception.InstanceGroupNotFound(group_uuid=group_uuid)
 return result.id

def _instance_group_id ( context , group_uuid ) : result = model_query ( context , models . InstanceGroup , ( models . InstanceGroup . id , ) ) . filter_by ( uuid = group_uuid ) . first ( ) if ( not result ) : raise exception . InstanceGroupNotFound ( group_uuid = group_uuid ) return result . id
returns the group database id for the group uuid .