mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-23 09:23:54 +02:00
Merge branch 'master' into 20250501-pre-release
This commit is contained in:
commit
a20d57cc8d
|
@ -375,12 +375,15 @@ impl KanidmClientBuilder {
|
|||
if let Some(instance_config) = config.instances.remove(instance_name) {
|
||||
self.apply_config_options(instance_config)
|
||||
} else {
|
||||
let emsg = format!(
|
||||
"instance {} does not exist in config file {:?}",
|
||||
instance_name, config_path
|
||||
info!(
|
||||
"instance {} does not exist in config file {}",
|
||||
instance_name,
|
||||
config_path.as_ref().display()
|
||||
);
|
||||
error!(%emsg);
|
||||
Err(ClientError::ConfigParseIssue(emsg))
|
||||
|
||||
// It's not an error if the instance isn't present, the build step
|
||||
// will fail if there is insufficent information to proceed.
|
||||
Ok(self)
|
||||
}
|
||||
} else {
|
||||
self.apply_config_options(config.default)
|
||||
|
|
Loading…
Reference in a new issue