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:
parent
2b61048651
commit
d55569ed51
@ -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,})'
|
||||
|
Loading…
Reference in New Issue
Block a user