mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-23 09:54:55 +02:00
Fix argument parsing for updating the repo.
This commit is contained in:
+3
-1
@@ -1012,7 +1012,7 @@ impl Options {
|
||||
let update = RepositoryUpdate::embedded();
|
||||
let command = Command::CertAuth(CaCommand::RepoUpdate(my_ca, update));
|
||||
Ok(Options::make(general_args, command))
|
||||
} else {
|
||||
} else if let Some(matches) = matches.subcommand_matches("rfc8183") {
|
||||
let general_args = GeneralArgs::from_matches(matches)?;
|
||||
let my_ca = Self::parse_my_ca(matches)?;
|
||||
|
||||
@@ -1031,6 +1031,8 @@ impl Options {
|
||||
let update = RepositoryUpdate::rfc8181(response);
|
||||
let command = Command::CertAuth(CaCommand::RepoUpdate(my_ca, update));
|
||||
Ok(Options::make(general_args, command))
|
||||
} else {
|
||||
Err(Error::UnrecognisedSubCommand)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user