Merge "Allow filtering shares on mount_point_name property"

This commit is contained in:
Zuul
2025-08-18 20:08:20 +00:00
committed by Gerrit Code Review
4 changed files with 8 additions and 3 deletions

View File

@@ -203,7 +203,8 @@ class ShareMixin(object):
'is_public', 'metadata', 'extra_specs', 'sort_key', 'sort_dir',
'share_group_id', 'share_group_snapshot_id', 'export_location_id',
'export_location_path', 'display_name~', 'display_description~',
'display_description', 'limit', 'offset', 'is_soft_deleted')
'display_description', 'limit', 'offset', 'is_soft_deleted',
'mount_point_name')
@wsgi.Controller.authorize
def update(self, req, id, body):

View File

@@ -2209,7 +2209,7 @@ def _process_share_filters(query, filters, project_id=None, is_public=False):
share_filter_keys = ['share_group_id', 'snapshot_id',
'is_soft_deleted', 'source_backup_id']
instance_filter_keys = ['share_server_id', 'status', 'share_type_id',
'host', 'share_network_id']
'host', 'share_network_id', 'mount_point_name']
share_filters = {}
instance_filters = {}

View File

@@ -2339,7 +2339,7 @@ class API(base.Base):
'display_description', 'display_description~', 'snapshot_id',
'status', 'share_type_id', 'project_id', 'export_location_id',
'export_location_path', 'limit', 'offset', 'host',
'share_network_id', 'is_soft_deleted']
'share_network_id', 'is_soft_deleted', 'mount_point_name']
for key in filter_keys:
if key in search_opts:

View File

@@ -0,0 +1,4 @@
---
fixes:
- |
Allow filtering shares on mount_point_name property.