fix: serialize only the adapter config, not the adapter spec

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2025-06-12 16:59:41 +03:00
parent ccfa86101b
commit 073b652f7c
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -446,7 +446,6 @@ when I run ./env.sh cib --config broker.yaml process-events
then stderr contains "RADICLE_NATIVE_CI="
then stderr contains "foo: bar"
then stderr contains "API_KEY: xyzzy"
when I run cibtool --db ci-broker.db event list
then stdout is empty
+1 -1
View File
@@ -120,7 +120,7 @@ impl Adapter {
fn write_adapter_config(&self, tmpdir: &TempDir) -> Result<PathBuf, AdapterError> {
let filename = tmpdir.path().join("adapter.yaml");
let yaml = serde_yml::to_string(self).map_err(AdapterError::AdapterConfigToYaml)?;
let yaml = serde_yml::to_string(&self.config).map_err(AdapterError::AdapterConfigToYaml)?;
logger::adapter_temp_config(&filename, &yaml);
std::fs::write(&filename, yaml.as_bytes()).map_err(AdapterError::AdapterConfigWrite)?;