mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 17:07:36 -02:30
Reworded invalide private key data to be more generic
This commit is contained in:
@@ -222,7 +222,7 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique):
|
|||||||
"""
|
"""
|
||||||
cert = ''
|
cert = ''
|
||||||
data = data.strip()
|
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.
|
# Set up the valid private key header and footer.
|
||||||
begin_re = r'(-{4,})\s*BEGIN\s+([A-Z0-9]+)?\s*PRIVATE\sKEY\s*(-{4,})'
|
begin_re = r'(-{4,})\s*BEGIN\s+([A-Z0-9]+)?\s*PRIVATE\sKEY\s*(-{4,})'
|
||||||
|
|||||||
Reference in New Issue
Block a user