diff options
author | Alex Auvolat <alex@adnab.me> | 2021-05-28 13:58:47 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-05-28 15:29:58 +0200 |
commit | b9127dd6f88d3c66181ef6748167efd94283ff41 (patch) | |
tree | a05030f4e16678b3dc997c6d2ec057ff9e7a19fb /src/garage/cli.rs | |
parent | ddb2b29bfd1da75a9035fecf15169891be5bcafd (diff) | |
download | garage-0.3.0.tar.gz garage-0.3.0.zip |
Prepare for v0.3.0 and add migration path from v0.2.1.xv0.3.0
Diffstat (limited to 'src/garage/cli.rs')
-rw-r--r-- | src/garage/cli.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/garage/cli.rs b/src/garage/cli.rs index 30d5726e..0ddb5a1c 100644 --- a/src/garage/cli.rs +++ b/src/garage/cli.rs @@ -467,9 +467,7 @@ pub async fn cmd_configure( "Please specify a capacity with the -c flag, or set node explicitly as gateway with -g".into())), }; NetworkConfigEntry { - zone: args - .zone - .expect("Please specifiy a zone with the -z flag"), + zone: args.zone.expect("Please specifiy a zone with the -z flag"), capacity, tag: args.tag.unwrap_or_default(), } @@ -481,9 +479,7 @@ pub async fn cmd_configure( _ => old.capacity, }; NetworkConfigEntry { - zone: args - .zone - .unwrap_or_else(|| old.zone.to_string()), + zone: args.zone.unwrap_or_else(|| old.zone.to_string()), capacity, tag: args.tag.unwrap_or_else(|| old.tag.to_string()), } |