diff --git a/src/tools/disks/zpool_status.rs b/src/tools/disks/zpool_status.rs index 34f88550..b1a1a1fa 100644 --- a/src/tools/disks/zpool_status.rs +++ b/src/tools/disks/zpool_status.rs @@ -240,8 +240,7 @@ where node: replace(&mut cur.node, node), level: replace(&mut cur.level, vdev_level), children_of_parent: replace(&mut cur.children_of_parent, Vec::new()), - }); cur.children_of_parent = prev.children_of_parent; - + }); } else { // same indentation level, add to children of the previous level: cur.children_of_parent.push(Value::Object(