fix(hermes): Use the shared constant for the remaining two "nodes:" entries in _spine_fallback: (_NODES_PREFIX, "nodes_total:") and (_NODES_PREFIX, "nodes_ready:"). This removes the duplicated literal without changing matching behavior. (incident sonar/atlasbot/python:S1192/AZ2y3T38Ky9i4pkIpSiU)
This commit is contained in:
parent
2fde40293c
commit
1c9cdde1d2
@ -72,8 +72,11 @@ def _spine_lines(lines: list[str]) -> dict[str, str]:
|
||||
return spine
|
||||
|
||||
|
||||
_NODES_PREFIX = "nodes:"
|
||||
|
||||
|
||||
def _spine_nodes(lines: list[str], spine: dict[str, str]) -> None:
|
||||
nodes_line = _line_starting_with(lines, "nodes:")
|
||||
nodes_line = _line_starting_with(lines, _NODES_PREFIX)
|
||||
if nodes_line:
|
||||
spine["nodes_count"] = nodes_line
|
||||
spine["nodes_ready"] = nodes_line
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user