summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/resources/scenario_models.py
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2017-08-22 01:42:46 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-22 01:42:46 +0000
commit2125937047aac348645e5083654434af8d134ca4 (patch)
treef2da3f1c0221d6dabf4c1e3c74f94fa00d53cbcb /testapi/opnfv_testapi/resources/scenario_models.py
parent25cc46e2b60315ff7fcd21f057c55341e498098a (diff)
parenteccc03242b495920115846e0add3e5e48a50a027 (diff)
Merge "change scenario owner"
Diffstat (limited to 'testapi/opnfv_testapi/resources/scenario_models.py')
-rw-r--r--testapi/opnfv_testapi/resources/scenario_models.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/resources/scenario_models.py b/testapi/opnfv_testapi/resources/scenario_models.py
index 9f5a074..7d07707 100644
--- a/testapi/opnfv_testapi/resources/scenario_models.py
+++ b/testapi/opnfv_testapi/resources/scenario_models.py
@@ -74,7 +74,8 @@ class ScenarioVersion(models.ModelBase):
@property projects:
@ptype projects: C{list} of L{ScenarioProject}
"""
- def __init__(self, version=None, projects=None):
+ def __init__(self, owner=None, version=None, projects=None):
+ self.owner = owner
self.version = version
self.projects = list_default(projects)
@@ -83,7 +84,9 @@ class ScenarioVersion(models.ModelBase):
return {'projects': ScenarioProject}
def __eq__(self, other):
- return [self.version == other.version and self._projects_eq(other)]
+ return [self.version == other.version and
+ self.owner == other.owner and
+ self._projects_eq(other)]
def __ne__(self, other):
return not self.__eq__(other)