Skip to content

Commit

Permalink
fix: mayastor-client nexus create accept many children
Browse files Browse the repository at this point in the history
Signed-off-by: Ana Hobden <[email protected]>
  • Loading branch information
Hoverbear committed Feb 23, 2021
1 parent 239fe46 commit 4d3f0ff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mayastor/src/bin/mayastor-client/nexus_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ async fn nexus_create(
let size = parse_size(matches.value_of("size").unwrap())
.map_err(|s| Status::invalid_argument(format!("Bad size '{}'", s)))?;
let children = matches
.value_of("children")
.unwrap()
.split_whitespace()
.values_of("children")
.unwrap() // It's required, it'll be here.
.map(|c| c.to_string())
.collect::<Vec<String>>();

Expand Down

0 comments on commit 4d3f0ff

Please sign in to comment.