kin: KIN-BIZ-005 Убрать дублирование UI сред: SettingsView vs ProjectView
This commit is contained in:
parent
a58578bb9d
commit
98d62266ba
1 changed files with 3 additions and 1 deletions
|
|
@ -1024,7 +1024,7 @@ def bootstrap(body: BootstrapRequest):
|
||||||
# Environments (KIN-087)
|
# Environments (KIN-087)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
VALID_AUTH_TYPES = {"password", "key"}
|
VALID_AUTH_TYPES = {"password", "key", "ssh_key"}
|
||||||
|
|
||||||
|
|
||||||
class EnvironmentCreate(BaseModel):
|
class EnvironmentCreate(BaseModel):
|
||||||
|
|
@ -1167,6 +1167,8 @@ def create_environment(project_id: str, body: EnvironmentCreate):
|
||||||
conn.close()
|
conn.close()
|
||||||
if "UNIQUE constraint" in str(e):
|
if "UNIQUE constraint" in str(e):
|
||||||
raise HTTPException(409, f"Environment '{body.name}' already exists for this project")
|
raise HTTPException(409, f"Environment '{body.name}' already exists for this project")
|
||||||
|
if "KIN_SECRET_KEY" in str(e):
|
||||||
|
raise HTTPException(503, "Server misconfiguration: KIN_SECRET_KEY is not set. Contact admin.")
|
||||||
raise HTTPException(500, str(e))
|
raise HTTPException(500, str(e))
|
||||||
scan_task_id = None
|
scan_task_id = None
|
||||||
if body.is_installed:
|
if body.is_installed:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue