diff --git a/backend/app/routers/objects.py b/backend/app/routers/objects.py index bc80a48..019a06d 100644 --- a/backend/app/routers/objects.py +++ b/backend/app/routers/objects.py @@ -174,6 +174,7 @@ async def discover_devices( """SSH into each rack PC, parse caps config, discover network devices.""" obj = await _load_object(db, obj_id) result = await discover_via_ssh(db, obj) + await db.flush() return SyncResult( created=result.created, updated=result.updated,