diff options
author | Alex Auvolat <alex@adnab.me> | 2022-03-16 14:43:04 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-03-24 15:27:13 +0100 |
commit | 2814d41842bd48b0015c5ae000a61113b7d806d7 (patch) | |
tree | e90cb4e0187ed75b22787a27e336596c384a0ac5 /src/garage/cli/structs.rs | |
parent | 7e0e2ffda282a923ec58295942b5c8a05e5645be (diff) | |
download | garage-2814d41842bd48b0015c5ae000a61113b7d806d7.tar.gz garage-2814d41842bd48b0015c5ae000a61113b7d806d7.zip |
Allow `garage layout assign` to assign to several nodes at once
Diffstat (limited to 'src/garage/cli/structs.rs')
-rw-r--r-- | src/garage/cli/structs.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs index 30cbb2da..a0c49aeb 100644 --- a/src/garage/cli/structs.rs +++ b/src/garage/cli/structs.rs @@ -92,8 +92,9 @@ pub enum LayoutOperation { #[derive(StructOpt, Debug)] pub struct AssignRoleOpt { - /// Node to which to assign role (prefix of hexadecimal node id) - pub(crate) node_id: String, + /// Node(s) to which to assign role (prefix of hexadecimal node id) + #[structopt(required = true)] + pub(crate) node_ids: Vec<String>, /// Location (zone or datacenter) of the node #[structopt(short = "z", long = "zone")] |