From ecf0a4b40fb06189681bc5b6720745af1bbe4fd6 Mon Sep 17 00:00:00 2001 From: zhangguoqing Date: Mon, 14 Mar 2016 11:30:20 +0000 Subject: [PATCH] Alter wrong comment about param filters The function _process_consistencygroups_filters can not filter the dictionary of filters, and it is unnecessary. So altering wrong comment about param filters to avoid the confusion. Change-Id: I212e68e35fa228fd84a145e12263cefabcba24f5 --- cinder/db/sqlalchemy/api.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/cinder/db/sqlalchemy/api.py b/cinder/db/sqlalchemy/api.py index 61b489cc94f..6b80790a86f 100644 --- a/cinder/db/sqlalchemy/api.py +++ b/cinder/db/sqlalchemy/api.py @@ -4019,11 +4019,7 @@ def consistencygroup_get_all(context, filters=None, marker=None, limit=None, paired with corresponding item in sort_dirs :param sort_dirs: list of directions in which results should be sorted, paired with corresponding item in sort_keys - :param filters: dictionary of filters; values that are in lists, tuples, - or sets cause an 'IN' operation, while exact matching - is used for other values, see - _process_consistencygroups_filters function for more - information + :param filters: Filters for the query in the form of key/value. :returns: list of matching consistency groups """ return _consistencygroup_get_all(context, filters, marker, limit, offset, @@ -4048,11 +4044,7 @@ def consistencygroup_get_all_by_project(context, project_id, filters=None, paired with corresponding item in sort_dirs :param sort_dirs: list of directions in which results should be sorted, paired with corresponding item in sort_keys - :param filters: dictionary of filters; values that are in lists, tuples, - or sets cause an 'IN' operation, while exact matching - is used for other values, see - _process_consistencygroups_filters function for more - information + :param filters: Filters for the query in the form of key/value. :returns: list of matching consistency groups """ authorize_project_context(context, project_id)