Fix PrimaryParseJob dataclass field order for raw_line_count.

A defaulted field was inserted before required textfsm_command/vendor fields and broke collect startup.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-23 15:40:06 +08:00
parent c18c9afa2e
commit 08231c779e

View file

@ -52,10 +52,11 @@ class PrimaryParseJob:
merged_params: dict[str, Any]
raw_text: str
raw_rel_path: str
raw_line_count: int = 0
textfsm_command: str
vendor: str
device_type: str
# Full CLI line count before DB raw_text truncate (must follow required fields).
raw_line_count: int = 0
enrich_joins: list[Any] = field(default_factory=list)
aux_captures: list[AuxRawCapture] = field(default_factory=list)
# Shared across lanes for aux metric de-dupe (may be None).