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}, params={'value': value},
) )
else: else:
field['type'] = 'string' field.pop('type')
field['choices'] = CHOICES_PRIVILEGE_ESCALATION_METHODS field['choices'] = CHOICES_PRIVILEGE_ESCALATION_METHODS
for key in ('choices', 'multiline', 'format', 'secret',): for key in ('choices', 'multiline', 'format', 'secret',):