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: