From 4d3f0ff175a52142b2cf0b7e0e69b13322c914c1 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Wed, 10 Feb 2021 14:33:06 -0800 Subject: [PATCH] fix: mayastor-client nexus create accept many children Signed-off-by: Ana Hobden --- mayastor/src/bin/mayastor-client/nexus_cli.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mayastor/src/bin/mayastor-client/nexus_cli.rs b/mayastor/src/bin/mayastor-client/nexus_cli.rs index 15ffa6207..57a167733 100644 --- a/mayastor/src/bin/mayastor-client/nexus_cli.rs +++ b/mayastor/src/bin/mayastor-client/nexus_cli.rs @@ -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::>();