diff --git a/src/vaults/VaultOps.ts b/src/vaults/VaultOps.ts index e982df861..6cffeab9a 100644 --- a/src/vaults/VaultOps.ts +++ b/src/vaults/VaultOps.ts @@ -266,7 +266,8 @@ async function listSecrets(vault: Vault): Promise { /** * Changes the contents of a secret. Creates a new file if it doesn't exist. */ -async function writeSecret(vault: Vault, +async function writeSecret( + vault: Vault, secretName: string, content: Buffer | string, logger?: Logger, @@ -274,8 +275,8 @@ async function writeSecret(vault: Vault, await vault.writeF(async (efs) => { await efs.writeFile(secretName, content); }); - - logger?.info(`Wrote secret ${secretName} in vault ${vault.vaultId}`);} + logger?.info(`Wrote secret ${secretName} in vault ${vault.vaultId}`); +} export { addSecret, diff --git a/tests/client/handlers/vaults.test.ts b/tests/client/handlers/vaults.test.ts index a75249662..825a15ad8 100644 --- a/tests/client/handlers/vaults.test.ts +++ b/tests/client/handlers/vaults.test.ts @@ -984,7 +984,6 @@ describe('vaultsSecretsWriteFile', () => { }); }); }); - }); describe('vaultsSecretEnv', () => { const logger = new Logger('vaultsSecretEnv test', LogLevel.WARN, [