fix ssh 5

This commit is contained in:
dv 2026-04-08 00:20:16 +03:00
parent 038469b6f7
commit 4fadc01ba7

View file

@ -174,6 +174,7 @@ async def discover_devices(
"""SSH into each rack PC, parse caps config, discover network devices.""" """SSH into each rack PC, parse caps config, discover network devices."""
obj = await _load_object(db, obj_id) obj = await _load_object(db, obj_id)
result = await discover_via_ssh(db, obj) result = await discover_via_ssh(db, obj)
await db.flush()
return SyncResult( return SyncResult(
created=result.created, created=result.created,
updated=result.updated, updated=result.updated,