From 2f97e2f1d902bdc4676b1fed65e1a6e2d8eea44f Mon Sep 17 00:00:00 2001 From: gecong1973 Date: Tue, 29 Aug 2017 19:06:47 -0700 Subject: [PATCH] Fix mongodb scoped_query's param note Remove param key in scoped_query note and add param queue and project in scope_queue_name method note. Change-Id: I8613ba3b13311220b0bb10339744ee5fd9802f0d --- zaqar/storage/mongodb/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zaqar/storage/mongodb/utils.py b/zaqar/storage/mongodb/utils.py index 1a5522805..2be8a323a 100644 --- a/zaqar/storage/mongodb/utils.py +++ b/zaqar/storage/mongodb/utils.py @@ -157,7 +157,10 @@ def scope_queue_name(queue=None, project=None): for that project is returned. If neither queue nor project are specified, a scope for "all global queues" is returned, which is to be interpreted as excluding queues scoped by project. - + :param queue: name of queue to seek + :type queue: six.text_type + :param project: namespace + :type project: six.text_type :returns: '{project}/{queue}' if project and queue are given, '{project}/' if ONLY project is given, '/{queue}' if ONLY queue is given, and '/' if neither are given. @@ -194,8 +197,6 @@ def scoped_query(queue, project): :type queue: six.text_type :param project: namespace :type project: six.text_type - :param key: query key to use - :type key: six.text_type :returns: query to issue :rtype: dict """