Spaces:
Runtime error
Runtime error
Commit
·
1d9f42e
1
Parent(s):
9f28d12
new project handling for protect stage retrieval
Browse files
backend/classes/galileo_platform.py
CHANGED
|
@@ -47,6 +47,9 @@ class GalileoPlatform:
|
|
| 47 |
|
| 48 |
def get_protect_stage_id(self) -> str | UUID4 | None:
|
| 49 |
"""Get or create a Galileo Protect stage."""
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
protect_stage = get_protect_stage(
|
| 52 |
project_name=self.config.protect_project_name,
|
|
|
|
| 47 |
|
| 48 |
def get_protect_stage_id(self) -> str | UUID4 | None:
|
| 49 |
"""Get or create a Galileo Protect stage."""
|
| 50 |
+
if not get_project(name=self.config.protect_project_name):
|
| 51 |
+
_ = create_project(name=self.config.protect_project_name)
|
| 52 |
+
print(f"Project {self.config.protect_project_name} created")
|
| 53 |
|
| 54 |
protect_stage = get_protect_stage(
|
| 55 |
project_name=self.config.protect_project_name,
|