aboutsummaryrefslogtreecommitdiff
path: root/src/garage
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-09-18 12:07:45 +0200
committerAlex Auvolat <alex@adnab.me>2023-09-18 12:07:45 +0200
commit749b4865d0a26c600fef79ab0456c827faafb9e8 (patch)
tree6dd66912faaba361be760c562b17a00fda53c509 /src/garage
parent015ccb39aa511c72d0c899713a828491871da3e7 (diff)
downloadgarage-749b4865d0a26c600fef79ab0456c827faafb9e8.tar.gz
garage-749b4865d0a26c600fef79ab0456c827faafb9e8.zip
new layout: improve display and fix comments
Diffstat (limited to 'src/garage')
-rw-r--r--src/garage/cli/layout.rs6
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 {