diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-19 19:08:48 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-19 19:08:48 +0200 |
commit | e325c7f47a9ad7777358b669f62a7c613f676ecd (patch) | |
tree | 63bde6197bbc5d2148b0e257751b7f66913bad0e /src/main.rs | |
parent | a6129d8626f5b87462b70eadbce2db08c9761cfd (diff) | |
download | garage-e325c7f47a9ad7777358b669f62a7c613f676ecd.tar.gz garage-e325c7f47a9ad7777358b669f62a7c613f676ecd.zip |
Add hostname to node info
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 08f37dd5..0aab9e2a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -247,8 +247,8 @@ async fn cmd_status(rpc_cli: RpcAddrClient<Message>, rpc_host: SocketAddr) -> Re for adv in status.iter() { if let Some(cfg) = config.members.get(&adv.id) { println!( - "{:?}\t{}\t{}\t{}", - adv.id, cfg.datacenter, cfg.n_tokens, adv.addr + "{:?}\t{}\t{}\t{}\t{}", + adv.id, adv.state_info.hostname, adv.addr, cfg.datacenter, cfg.n_tokens ); } } @@ -274,7 +274,7 @@ async fn cmd_status(rpc_cli: RpcAddrClient<Message>, rpc_host: SocketAddr) -> Re println!("\nUnconfigured nodes:"); for adv in status.iter() { if !config.members.contains_key(&adv.id) { - println!("{:?}\t{}", adv.id, adv.addr); + println!("{:?}\t{}\t{}", adv.id, adv.state_info.hostname, adv.addr); } } } |