src/api2/node/disks/zfs.rs: always set pool name
This commit is contained in:
parent
215968e033
commit
42d19fdf69
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user