From fad3a4dc830f008bd740051919fbcdeebb3ddc0f Mon Sep 17 00:00:00 2001 From: Michael Vermaes Date: Fri, 6 Oct 2017 06:09:22 +0800 Subject: [PATCH] Fix typo in vault decrypt error message (#31335) --- lib/ansible/parsing/vault/__init__.py | 2 +- test/units/parsing/yaml/test_loader.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/parsing/vault/__init__.py b/lib/ansible/parsing/vault/__init__.py index ef08e602fb..8787cb0a83 100644 --- a/lib/ansible/parsing/vault/__init__.py +++ b/lib/ansible/parsing/vault/__init__.py @@ -587,7 +587,7 @@ class VaultLib: (vault_secret_id, filename, e)) continue else: - msg = "Decryption failed (no vault secrets would found that could decrypt)" + msg = "Decryption failed (no vault secrets were found that could decrypt)" if filename: msg += " on %s" % filename raise AnsibleVaultError(msg) diff --git a/test/units/parsing/yaml/test_loader.py b/test/units/parsing/yaml/test_loader.py index 6865d69092..7db332388b 100644 --- a/test/units/parsing/yaml/test_loader.py +++ b/test/units/parsing/yaml/test_loader.py @@ -201,7 +201,7 @@ class TestAnsibleLoaderVault(unittest.TestCase, YamlTestUtils): self.vault.decrypt(ciphertext) except Exception as e: self.assertIsInstance(e, errors.AnsibleError) - self.assertEqual(e.message, 'Decryption failed (no vault secrets would found that could decrypt)') + self.assertEqual(e.message, 'Decryption failed (no vault secrets were found that could decrypt)') def _encrypt_plaintext(self, plaintext): # Construct a yaml repr of a vault by hand