fix typo in ansible vault decrypt if vault error (#73542)

This commit is contained in:
Lazuardi N Putra 2021-02-12 02:14:50 +07:00 committed by GitHub
parent 1cb753225c
commit bcefb6b5f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -680,7 +680,7 @@ class VaultLib:
raise AnsibleVaultError("A vault password must be specified to decrypt data") raise AnsibleVaultError("A vault password must be specified to decrypt data")
if not is_encrypted(b_vaulttext): if not is_encrypted(b_vaulttext):
msg = "input is not vault encrypted data" msg = "input is not vault encrypted data. "
if filename: if filename:
msg += "%s is not a vault encrypted file" % to_native(filename) msg += "%s is not a vault encrypted file" % to_native(filename)
raise AnsibleError(msg) raise AnsibleError(msg)