diff options
author | spisarski <s.pisarski@cablelabs.com> | 2017-07-26 11:43:04 -0600 |
---|---|---|
committer | spisarski <s.pisarski@cablelabs.com> | 2017-07-26 11:43:04 -0600 |
commit | 5f1757326572ce9b5141e828a7a6157ded8bae0d (patch) | |
tree | 2925c2fd54917d5d0cf2095b9a9933deffadbe0e /snaps/domain/project.py | |
parent | 1b28433d121e6fd31a0524995595f6f269cfd420 (diff) |
Expanded project creation tests and validation.
JIRA: SNAPS-147
Change-Id: I16eb1ab9f976daf4195a47b04ce5b8b8ba931497
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/domain/project.py')
-rw-r--r-- | snaps/domain/project.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/snaps/domain/project.py b/snaps/domain/project.py index 818645b..73357c7 100644 --- a/snaps/domain/project.py +++ b/snaps/domain/project.py @@ -19,14 +19,16 @@ class Project: SNAPS domain object for Projects. Should contain attributes that are shared amongst cloud providers """ - def __init__(self, name, project_id): + def __init__(self, name, project_id, domain_id=None): """ Constructor :param name: the project's name :param project_id: the project's id + :param domain_id: the project's domain id """ self.name = name self.id = project_id + self.domain_id = domain_id def __eq__(self, other): return self.name == other.name and self.id == other.id |