mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 02:01:01 -03:30
Merge pull request #6478 from ryanpetrello/fix-6417
use str() - not repr() - for invalid SSH cert error messages
This commit is contained in:
@@ -57,7 +57,7 @@ def validate_pem(data, min_keys=0, max_keys=None, min_certs=0, max_certs=None):
|
|||||||
while data:
|
while data:
|
||||||
match = pem_obj_re.match(data)
|
match = pem_obj_re.match(data)
|
||||||
if not match:
|
if not match:
|
||||||
raise ValidationError(_('Invalid certificate or key: %r...') % data[:100])
|
raise ValidationError(_('Invalid certificate or key: %s...') % data[:100])
|
||||||
data = match.group(4).lstrip()
|
data = match.group(4).lstrip()
|
||||||
|
|
||||||
# Check PEM object type, check key type if private key.
|
# Check PEM object type, check key type if private key.
|
||||||
|
|||||||
Reference in New Issue
Block a user