@require_context
def instance_type_get(context, id, session=None):
 result = _instance_type_get_query(context, session=session).filter_by(id=id).first()
 if (not result):
  raise exception.InstanceTypeNotFound(instance_type_id=id)
 return _dict_with_extra_specs(result)

@ require_context def instance_type_get ( context , id , session = None ) : result = _instance_type_get_query ( context , session = session ) . filter_by ( id = id ) . first ( ) if ( not result ) : raise exception . InstanceTypeNotFound ( instance_type_id = id ) return _dict_with_extra_specs ( result )
get instance type by id .