From 4decc6beabc3a86b05767a476c48890a4c8e4012 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Mon, 15 Apr 2024 20:54:15 +0200 Subject: [PATCH] fixup! core: fixing the nurse run command Signed-off-by: Vincenzo Palazzo --- coffee_cmd/src/coffee_term/command_show.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/coffee_cmd/src/coffee_term/command_show.rs b/coffee_cmd/src/coffee_term/command_show.rs index 4ff563f..593a09f 100644 --- a/coffee_cmd/src/coffee_term/command_show.rs +++ b/coffee_cmd/src/coffee_term/command_show.rs @@ -114,18 +114,15 @@ pub fn show_nurse_verify(nurse_verify: &ChainOfResponsibilityStatus) -> Result<( } } Defect::CoffeeGlobalRepoCleanup(networks) => { - let defect = format!( - "Global repository migration completed for the networks: {}", - networks - .iter() - .map(|(network, _)| format!("{network} ")) - .collect::() - .trim_end() - ); + let defect = "Network specific repository missing"; + let networks = networks + .iter() + .map(|(network, _)| network.clone()) + .collect::>(); table.push([ term::format::positive("●").into(), term::format::bold(defect.to_owned()), - term::format::highlight("_".to_owned()), + term::format::highlight(networks.join(", ")), ]); } }