From 9ee3bf3345b006a745b2ee28fee3613819011796 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 26 Jul 2025 17:39:44 -0700 Subject: Adds session-level storage for bw cli --- worker/scripts/ansible_playbook.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'worker/scripts/ansible_playbook.ts') diff --git a/worker/scripts/ansible_playbook.ts b/worker/scripts/ansible_playbook.ts index 6eb4d47..20f85d8 100755 --- a/worker/scripts/ansible_playbook.ts +++ b/worker/scripts/ansible_playbook.ts @@ -36,12 +36,12 @@ await LogMetricTraceable.ofLogTraceable(_logJob) tEitherJob.get().flatMapAsync((job) => eitherVault.flatMapAsync(async (vault) => { const eitherKey = await vault.unlock(tEitherJob); + tEitherJob.trace.trace('unlocked vault :3'); return eitherKey.mapRight((key) => ({ job, key, vault })); }), ), ) .map(async (tEitherJobVault) => { - tEitherJobVault.trace.trace('getting ansible secwets uwu~'); const eitherJobVault = await tEitherJobVault.get(); const eitherSshKey = await eitherJobVault.flatMapAsync(({ key, vault }) => @@ -49,7 +49,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob) ); const eitherSshKeyFile = await eitherSshKey.mapRight(({ notes }) => notes).flatMapAsync(saveToTempFile); const eitherAnsibleSecrets = await eitherJobVault.flatMapAsync(({ key, vault }) => - vault.fetchSecret(tEitherJobVault, key, 'ansible_playbooks'), + vault.fetchSecret(tEitherJobVault, key, 'ansible_secrets'), ); const eitherAnsibleSecretsFile = await eitherAnsibleSecrets .mapRight(({ notes }) => notes) -- cgit v1.2.3-70-g09d2