Merge "Allow filtering shares on mount_point_name property"
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Allow filtering shares on mount_point_name property.
|
||||
Reference in New Issue
Block a user