Skip to content

Commit b52265b

Browse files
Removed erroneus error: VDEV.
Prompt: There is an `errors:` on the VDEVs table as if it was a disk, remove it.
1 parent 28a2efd commit b52265b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zfs_dashboard/zfs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def parse_zpool_status(output: str) -> Dict[str, List[Vdev]]:
6666
if not in_config or not current_pool:
6767
continue
6868

69-
# Skip headers
70-
if stripped.startswith("NAME") or not stripped:
69+
# Skip headers and errors line
70+
if stripped.startswith("NAME") or stripped.startswith("errors:") or not stripped:
7171
continue
7272

7373
# Basic parsing of config lines

0 commit comments

Comments
 (0)