mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-30 11:51:48 -05:00
AC-1071 Moved credential model to its own file. Added API support and tests for ssh_key_path field.
AC-1095 Added validation for SSH private keys.
This commit is contained in:
@@ -985,7 +985,7 @@ class CredentialSerializer(BaseSerializer):
|
||||
class Meta:
|
||||
model = Credential
|
||||
fields = ('*', 'user', 'team', 'kind', 'cloud', 'username',
|
||||
'password', 'ssh_key_data', 'ssh_key_unlock',
|
||||
'password', 'ssh_key_data', 'ssh_key_path', 'ssh_key_unlock',
|
||||
'sudo_username', 'sudo_password', 'vault_password')
|
||||
|
||||
def to_native(self, obj):
|
||||
|
||||
Reference in New Issue
Block a user