From 08fac324eab7f3078631d96a288423745a9cacd5 Mon Sep 17 00:00:00 2001 From: Morgan Richomme Date: Wed, 16 Sep 2015 14:58:27 +0200 Subject: 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 --- utils/test/result_collection_api/resources/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/test') 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 -- cgit 1.2.3-korg