mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
refactor and fix ssh_private_key and ssh_key_unlock validation
`clean_ssh_key_data` and `clean_ssh_key_unlock` no longer work because they're not actual fields on `model.Credential` anymore. This change refactors/moves their validation to a place that works (and makes more sense).
This commit is contained in:
@@ -126,7 +126,11 @@ ordered fields for that type:
|
||||
|
||||
"help_text": "User-facing short text describing the field.",
|
||||
|
||||
"type": ("string" | "number" | "ssh_private_key") # required,
|
||||
"type": ("string" | "number") # required,
|
||||
|
||||
"format": "ssh_private_key" # optional, can be used to enforce data
|
||||
# format validity for SSH private keys
|
||||
# data
|
||||
|
||||
"secret": true, # if true, the field will be treated
|
||||
# as sensitive and stored encrypted
|
||||
|
||||
Reference in New Issue
Block a user