mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 02:01:01 -03:30
Reworded invalide private key data to be more generic
This commit is contained in:
@@ -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,})'
|
||||
|
||||
Reference in New Issue
Block a user