Skip to content

Commit

Permalink
Fix typo in vault decrypt error message (ansible#31335)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvermaes authored and ansibot committed Oct 5, 2017
1 parent 336723d commit fad3a4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ansible/parsing/vault/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/units/parsing/yaml/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fad3a4d

Please sign in to comment.