diff options
author | Alex Auvolat <alex@adnab.me> | 2023-11-28 14:25:04 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-11-28 14:25:04 +0100 |
commit | c04dd8788a3764da2f307b1d10c2d56b7b0e4a61 (patch) | |
tree | 2c02648080fde466dcef7c39987d55a03d4a4399 /src/garage/admin | |
parent | 539af6eac434bd94acbcabcc5bb5c10450b71c5d (diff) | |
download | garage-c04dd8788a3764da2f307b1d10c2d56b7b0e4a61.tar.gz garage-c04dd8788a3764da2f307b1d10c2d56b7b0e4a61.zip |
admin: more info in admin GetClusterStatus
Diffstat (limited to 'src/garage/admin')
-rw-r--r-- | src/garage/admin/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/garage/admin/mod.rs b/src/garage/admin/mod.rs index 77918a0f..da4226cf 100644 --- a/src/garage/admin/mod.rs +++ b/src/garage/admin/mod.rs @@ -295,7 +295,7 @@ impl AdminRpcHandler { let info = node_info.get(id); let status = info.map(|x| &x.status); let role = layout.current().roles.get(id).and_then(|x| x.0.as_ref()); - let hostname = status.map(|x| x.hostname.as_str()).unwrap_or("?"); + let hostname = status.and_then(|x| x.hostname.as_deref()).unwrap_or("?"); let zone = role.map(|x| x.zone.as_str()).unwrap_or("?"); let capacity = role .map(|x| x.capacity_string()) |