1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Reworded invalide private key data to be more generic

This commit is contained in:
Matthew Jones 2014-10-06 15:09:21 -04:00
parent 2b61048651
commit d55569ed51

View File

@ -222,7 +222,7 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique):
"""
cert = ''
data = data.strip()
validation_error = ValidationError('Invalid SSH private key')
validation_error = ValidationError('Invalid private key')
# Set up the valid private key header and footer.
begin_re = r'(-{4,})\s*BEGIN\s+([A-Z0-9]+)?\s*PRIVATE\sKEY\s*(-{4,})'