mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix typo in vault decrypt error message (#31335)
This commit is contained in:
parent
336723d293
commit
fad3a4dc83
2 changed files with 2 additions and 2 deletions
|
@ -587,7 +587,7 @@ class VaultLib:
|
||||||
(vault_secret_id, filename, e))
|
(vault_secret_id, filename, e))
|
||||||
continue
|
continue
|
||||||
else:
|
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:
|
if filename:
|
||||||
msg += " on %s" % filename
|
msg += " on %s" % filename
|
||||||
raise AnsibleVaultError(msg)
|
raise AnsibleVaultError(msg)
|
||||||
|
|
|
@ -201,7 +201,7 @@ class TestAnsibleLoaderVault(unittest.TestCase, YamlTestUtils):
|
||||||
self.vault.decrypt(ciphertext)
|
self.vault.decrypt(ciphertext)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.assertIsInstance(e, errors.AnsibleError)
|
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):
|
def _encrypt_plaintext(self, plaintext):
|
||||||
# Construct a yaml repr of a vault by hand
|
# Construct a yaml repr of a vault by hand
|
||||||
|
|
Loading…
Reference in a new issue