fix ssh 5
This commit is contained in:
parent
038469b6f7
commit
4fadc01ba7
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue