фикс ssh
This commit is contained in:
parent
783e6f80d4
commit
b6eb46078d
1 changed files with 7 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue