bugfix: pagination raise exception when no records returned
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 19 Jul 2017 09:18:44 +0000 (17:18 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 19 Jul 2017 09:25:25 +0000 (17:25 +0800)
commit09b1180a782e58f9ed82dff6876363d8c7634359
tree224e7bf1ea22ccc734e7d008e5f5e6189122af27
parentbba00ca773c4851de91ab19d34859b930b9e1960
bugfix: pagination raise exception when no records returned

if no records returned, it will raise 'Request page > total_pages'
error. this patch is submitted to fix this

JIRA: RELENG-281

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