From: Morgan Richomme Date: Wed, 16 Sep 2015 12:58:27 +0000 (+0200) Subject: fix POD id type in API X-Git-Tag: arno.2015.2.0~27^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=08fac324eab7f3078631d96a288423745a9cacd5;p=releng.git fix POD id type in API the pod_id are defined as int but the APi sent a string, then the API was not working well when filtering on pod_id we may discuss if a string description would not be more explicit than an id JIRA: RELENG-7 Change-Id: Ib53263f379047bc4214926f966e40e797e42314e Signed-off-by: Morgan Richomme --- diff --git a/utils/test/result_collection_api/resources/handlers.py b/utils/test/result_collection_api/resources/handlers.py index 35aea0c9d..3faba5aeb 100644 --- a/utils/test/result_collection_api/resources/handlers.py +++ b/utils/test/result_collection_api/resources/handlers.py @@ -463,7 +463,7 @@ class TestResultsHandler(GenericApiHandler): get_request["case_name"] = case_arg if pod_arg is not None: - get_request["pod_id"] = pod_arg + get_request["pod_id"] = int(pod_arg) else: get_request["_id"] = result_id