summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/resources/pod_models.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-05-31 07:16:10 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-31 07:16:10 +0000
commit5f9b28c07c1fc4bab041fdab2fbf9723a49dc6a7 (patch)
treeb2540fc7b85b9c4871fb14b62af78313b69e1bcf /utils/test/result_collection_api/resources/pod_models.py
parent9a758c37d8464ba6a452f83b30e8bf8af072eb67 (diff)
parentf3235be772439981fa9e0f781b4e130b0860dad0 (diff)
Merge "bugfix: query results failed due to using mutable list initiation and forget to swagger-ize TestResult model"
Diffstat (limited to 'utils/test/result_collection_api/resources/pod_models.py')
-rw-r--r--utils/test/result_collection_api/resources/pod_models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/test/result_collection_api/resources/pod_models.py b/utils/test/result_collection_api/resources/pod_models.py
index cc98c90ce..0ccb66162 100644
--- a/utils/test/result_collection_api/resources/pod_models.py
+++ b/utils/test/result_collection_api/resources/pod_models.py
@@ -62,10 +62,11 @@ class Pod(PodCreateRequest):
@swagger.model()
class Pods(object):
"""
+ @property pods:
@ptype pods: C{list} of L{Pod}
"""
- def __init__(self, pods=list()):
- self.pods = pods
+ def __init__(self):
+ self.pods = list()
@staticmethod
def from_dict(res_dict):