Skip to content

Commit 9958929

Browse files
committed
fix(ont): eth type list[list[dict]] -> list[dict] (#16)
1 parent db14b33 commit 9958929

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ont.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,8 @@ def search_ont(sn: str, host: str) -> tuple[dict, str | None] | None:
7171
catv = parse_port_status(read_output(channel))
7272
catv_results.append(catv)
7373

74-
eth_results = []
75-
7674
channel.send(bytes(f"display ont port state {ont_info['interface']['port']} {ont_info['ont_id']} eth-port all\n", 'utf-8'))
77-
eth = parse_eth_ports_status(read_output(channel))
78-
eth_results.append(eth)
75+
eth_results = parse_eth_ports_status(read_output(channel))
7976

8077
ont_info['catv'] = catv_results
8178
ont_info['eth'] = eth_results

0 commit comments

Comments
 (0)