src/api2/node/disks/zfs.rs: always set pool name

This commit is contained in:
Dietmar Maurer 2020-06-20 07:15:32 +02:00
parent 215968e033
commit 42d19fdf69
1 changed files with 1 additions and 1 deletions

View File

@ -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)