mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-10-18 19:30:29 +08:00
fix: serialize only the adapter config, not the adapter spec
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
@@ -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
@@ -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)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user