mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Add host and project to the credential serializer.
This commit is contained in:
@@ -1131,8 +1131,8 @@ class CredentialSerializer(BaseSerializer):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Credential
|
model = Credential
|
||||||
fields = ('*', 'user', 'team', 'kind', 'cloud', 'username',
|
fields = ('*', 'user', 'team', 'kind', 'cloud', 'host', 'username',
|
||||||
'password', 'ssh_key_data', 'ssh_key_unlock',
|
'password', 'project', 'ssh_key_data', 'ssh_key_unlock',
|
||||||
'sudo_username', 'sudo_password', 'vault_password')
|
'sudo_username', 'sudo_password', 'vault_password')
|
||||||
|
|
||||||
def to_native(self, obj):
|
def to_native(self, obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user