diff options
author | Alex Auvolat <alex@adnab.me> | 2023-09-18 12:07:45 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-09-18 12:07:45 +0200 |
commit | 749b4865d0a26c600fef79ab0456c827faafb9e8 (patch) | |
tree | 6dd66912faaba361be760c562b17a00fda53c509 /src/garage/cli/layout.rs | |
parent | 015ccb39aa511c72d0c899713a828491871da3e7 (diff) | |
download | garage-749b4865d0a26c600fef79ab0456c827faafb9e8.tar.gz garage-749b4865d0a26c600fef79ab0456c827faafb9e8.zip |
new layout: improve display and fix comments
Diffstat (limited to 'src/garage/cli/layout.rs')
-rw-r--r-- | src/garage/cli/layout.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/garage/cli/layout.rs b/src/garage/cli/layout.rs index 557549e2..ce2b11e0 100644 --- a/src/garage/cli/layout.rs +++ b/src/garage/cli/layout.rs @@ -282,7 +282,7 @@ pub async fn cmd_config_layout( layout .staging_parameters .update(LayoutParameters { zone_redundancy: r }); - println!("The new zone redundancy has been saved ({}).", r); + println!("The zone redundancy parameter has been set to '{}'.", r); did_something = true; } } @@ -359,11 +359,11 @@ pub fn print_cluster_layout(layout: &ClusterLayout, empty_msg: &str) { } if table.len() > 1 { format_table(table); + println!(); + println!("Zone redundancy: {}", layout.parameters.zone_redundancy); } else { println!("{}", empty_msg); } - println!(); - println!("Zone redundancy: {}", layout.parameters.zone_redundancy); } pub fn print_staging_role_changes(layout: &ClusterLayout) -> bool { |