diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2015-09-16 14:58:27 +0200 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2015-09-16 14:58:27 +0200 |
commit | 962f4cadc714ace002b9d0106a30c472fc9bf4b1 (patch) | |
tree | 4db93f24da14330056a5b69ea7050296f829efeb /result_collection_api/resources | |
parent | c052f8d19b45846cbb5d6c463a200478cef27f4d (diff) |
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 <morgan.richomme@orange.com>
Diffstat (limited to 'result_collection_api/resources')
-rw-r--r-- | result_collection_api/resources/handlers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/result_collection_api/resources/handlers.py b/result_collection_api/resources/handlers.py index 35aea0c..3faba5a 100644 --- a/result_collection_api/resources/handlers.py +++ b/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 |