From 5f1757326572ce9b5141e828a7a6157ded8bae0d Mon Sep 17 00:00:00 2001 From: spisarski Date: Wed, 26 Jul 2017 11:43:04 -0600 Subject: Expanded project creation tests and validation. JIRA: SNAPS-147 Change-Id: I16eb1ab9f976daf4195a47b04ce5b8b8ba931497 Signed-off-by: spisarski --- snaps/domain/project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'snaps/domain/project.py') 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 -- cgit 1.2.3-korg