bugfix: OperationFailure: the limit must be positive
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 21 Aug 2017 10:54:07 +0000 (18:54 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 21 Aug 2017 10:59:49 +0000 (18:59 +0800)
commit30868451cb3a59bf364a82854079e97e272d1438
tree0ad56159606ce1f93610cf436fb75599f850c892
parent1d05aa834b397df4156c064b9eeabf012f944250
bugfix: OperationFailure: the limit must be positive

in cursor.aggregate(), set limit=0 is not allowed, in this patch,
if no records to be listed, return empty list directly, no more
aggregate()

JIRA: RELENG-293

Change-Id: I7317892875da9c0f785ba010b55715032dee31ce
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
testapi/opnfv_testapi/resources/handlers.py