diff --git a/lib/ansible/parsing/vault/__init__.py b/lib/ansible/parsing/vault/__init__.py index ef08e602fb1643..8787cb0a83fa7f 100644 --- a/lib/ansible/parsing/vault/__init__.py +++ b/lib/ansible/parsing/vault/__init__.py @@ -587,7 +587,7 @@ def decrypt_and_get_vault_id(self, vaulttext, filename=None): (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 6865d690921925..7db332388b9a6d 100644 --- a/test/units/parsing/yaml/test_loader.py +++ b/test/units/parsing/yaml/test_loader.py @@ -201,7 +201,7 @@ def test_wrong_password(self): 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