1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Pop the type to be consistent

This commit is contained in:
Wayne Witzel III 2018-04-20 15:27:24 -04:00
parent 07474d5b21
commit c1a8d8670f

View File

@ -723,7 +723,7 @@ class CredentialTypeInputField(JSONSchemaField):
params={'value': value},
)
else:
field['type'] = 'string'
field.pop('type')
field['choices'] = CHOICES_PRIVILEGE_ESCALATION_METHODS
for key in ('choices', 'multiline', 'format', 'secret',):