Skip to content

Commit f2ef6a1

Browse files
authored
fix(dre): allow changing the subnet size with force-replace (#1947)
1 parent 0b8443f commit f2ef6a1

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

rs/cli/src/commands/subnet/force_replace.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ impl ExecutableCommand for ForceReplace {
4646
let from: BTreeSet<PrincipalId> = self.from.iter().cloned().collect();
4747
let to: BTreeSet<PrincipalId> = self.to.iter().cloned().collect();
4848

49-
if from.len() != to.len() {
50-
cmd.error(
51-
clap::error::ErrorKind::InvalidValue,
52-
"`from` and `to` have to contain the same number of elements".to_string(),
53-
)
54-
.exit();
55-
}
56-
5749
let duplicates = from.intersection(&to).collect_vec();
5850

5951
if duplicates.is_empty() {

0 commit comments

Comments
 (0)