ой фикс парсинга 2

This commit is contained in:
dv 2026-04-15 17:13:24 +03:00
parent 8a7a2ff9e1
commit b64198235d
2 changed files with 7 additions and 3 deletions

View file

@ -19,7 +19,11 @@
"Bash(python3 -c \":*)",
"Bash(python -c ':*)",
"Bash(node_modules/.bin/tsc --noEmit)",
"Bash(./node_modules/.bin/tsc --noEmit)"
"Bash(./node_modules/.bin/tsc --noEmit)",
"Bash(python -m py_compile \"C:/Users/Professional/Documents/VSCode/utp_service/backend/app/services/sse.py\")",
"Bash(python -m py_compile \"C:/Users/Professional/Documents/VSCode/utp_service/backend/app/services/discovery/orchestrator.py\")",
"Bash(python -m py_compile \"C:/Users/Professional/Documents/VSCode/utp_service/backend/app/services/discovery/config_parser.py\")",
"Bash(python -m py_compile \"C:/Users/Professional/Documents/VSCode/utp_service/backend/app/routers/objects.py\")"
]
}
}

View file

@ -172,7 +172,7 @@ async def discover_via_ssh(
except Exception as exc:
# Session is now invalid after a failed flush — capture the error so we can
# still emit disc_rack_done before propagating and aborting discovery.
_flush_error = RuntimeError(f"DB flush failed after rack {rack_host}: {exc}") from exc
_flush_error = exc
except Exception as exc:
# Unexpected per-rack error (e.g. SSH timeout, config parse failure not caught
@ -188,7 +188,7 @@ async def discover_via_ssh(
})
if _flush_error:
raise _flush_error
raise RuntimeError(f"DB flush failed after rack {rack_host}: {_flush_error}") from _flush_error
# ── Phase 2.5: Slave rack discovery via ARP ───────────────────────────────
all_rack_ips_set = {h for _, h, _, _ in rack_hosts}