diff --git a/src/api2/node/disks/zfs.rs b/src/api2/node/disks/zfs.rs index d91ede81..35b8ada2 100644 --- a/src/api2/node/disks/zfs.rs +++ b/src/api2/node/disks/zfs.rs @@ -194,7 +194,7 @@ pub fn zpool_details( tree["name"] = tree.as_object_mut().unwrap() .remove("pool") - .unwrap_or(Value::Null); + .unwrap_or_else(|| name.into()); Ok(tree)