@require_context
def volume_type_get_all(context, inactive=False, filters=None):
 filters = (filters or {})
 read_deleted = ('yes' if inactive else 'no')
 rows = model_query(context, models.VolumeTypes, read_deleted=read_deleted).options(joinedload('extra_specs')).order_by('name').all()
 result = {}
 for row in rows:
  result[row['name']] = _dict_with_extra_specs(row)
 return result

@ require_context def volume_type_get_all ( context , inactive = False , filters = None ) : filters = ( filters or { } ) read_deleted = ( 'yes' if inactive else 'no' ) rows = model_query ( context , models . VolumeTypes , read_deleted = read_deleted ) . options ( joinedload ( 'extra_specs' ) ) . order_by ( 'name' ) . all ( ) result = { } for row in rows : result [ row [ 'name' ] ] = _dict_with_extra_specs ( row ) return result
get all volume types .