diff --git a/lib/ansible/parsing/vault/__init__.py b/lib/ansible/parsing/vault/__init__.py index ef08e602fb1..8787cb0a83f 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 6865d690921..7db332388b9 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