From b6eb46078dd00d5426d5d0ea4950f264953d9564 Mon Sep 17 00:00:00 2001 From: dv Date: Thu, 9 Apr 2026 14:18:32 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20ssh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/routers/objects.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/app/routers/objects.py b/backend/app/routers/objects.py index f2f264c..91f268a 100644 --- a/backend/app/routers/objects.py +++ b/backend/app/routers/objects.py @@ -264,7 +264,13 @@ async def _run_discovery_background(obj_id: int, task_id: str) -> None: async with AsyncSessionLocal() as session: async with session.begin(): result_row = await session.execute( - select(Object).options(selectinload(Object.tags)).where(Object.id == obj_id) + select(Object) + .options( + selectinload(Object.tags), + selectinload(Object.ssh_credentials), + selectinload(Object.category_credentials), + ) + .where(Object.id == obj_id) ) obj = result_row.scalar_one_or_none() if obj is None: