options(joinedload('volume_metadata')).\
options(joinedload('volume_admin_metadata')).\
options(joinedload('volume_type')).\
- options(joinedload('volume_type.extra_specs')).\
options(joinedload('volume_attachment')).\
options(joinedload('consistencygroup'))
else:
project_only=project_only).\
options(joinedload('volume_metadata')).\
options(joinedload('volume_type')).\
- options(joinedload('volume_type.extra_specs')).\
options(joinedload('volume_attachment')).\
options(joinedload('consistencygroup'))
@require_context
def _volume_get(context, volume_id, session=None):
result = _volume_get_query(context, session=session, project_only=True).\
+ options(joinedload('volume_type.extra_specs')).\
filter_by(id=volume_id).\
first()