mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 22:19:28 -02:30
Keep the 'machine' credential name for user/password & key credentials.
This commit is contained in:
@@ -23,7 +23,7 @@ class Migration(migrations.Migration):
|
|||||||
('modified', models.DateTimeField(default=None, editable=False)),
|
('modified', models.DateTimeField(default=None, editable=False)),
|
||||||
('description', models.TextField(default=b'', blank=True)),
|
('description', models.TextField(default=b'', blank=True)),
|
||||||
('name', models.CharField(max_length=512)),
|
('name', models.CharField(max_length=512)),
|
||||||
('kind', models.CharField(max_length=32, choices=[(b'ssh', 'SSH'), (b'vault', 'Vault'), (b'net', 'Network'), (b'scm', 'Source Control'), (b'cloud', 'Cloud'), (b'insights', 'Insights')])),
|
('kind', models.CharField(max_length=32, choices=[(b'ssh', 'Machine'), (b'vault', 'Vault'), (b'net', 'Network'), (b'scm', 'Source Control'), (b'cloud', 'Cloud'), (b'insights', 'Insights')])),
|
||||||
('managed_by_tower', models.BooleanField(default=False, editable=False)),
|
('managed_by_tower', models.BooleanField(default=False, editable=False)),
|
||||||
('inputs', awx.main.fields.CredentialTypeInputField(default={}, blank=True, help_text='Enter inputs using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.')),
|
('inputs', awx.main.fields.CredentialTypeInputField(default={}, blank=True, help_text='Enter inputs using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.')),
|
||||||
('injectors', awx.main.fields.CredentialTypeInjectorField(default={}, blank=True, help_text='Enter injectors using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.')),
|
('injectors', awx.main.fields.CredentialTypeInjectorField(default={}, blank=True, help_text='Enter injectors using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.')),
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ class CredentialType(CommonModelNameNotUnique):
|
|||||||
unique_together = (('name', 'kind'),)
|
unique_together = (('name', 'kind'),)
|
||||||
|
|
||||||
KIND_CHOICES = (
|
KIND_CHOICES = (
|
||||||
('ssh', _('SSH')),
|
('ssh', _('Machine')),
|
||||||
('vault', _('Vault')),
|
('vault', _('Vault')),
|
||||||
('net', _('Network')),
|
('net', _('Network')),
|
||||||
('scm', _('Source Control')),
|
('scm', _('Source Control')),
|
||||||
@@ -588,7 +588,7 @@ class CredentialType(CommonModelNameNotUnique):
|
|||||||
def ssh(cls):
|
def ssh(cls):
|
||||||
return cls(
|
return cls(
|
||||||
kind='ssh',
|
kind='ssh',
|
||||||
name='SSH',
|
name='Machine',
|
||||||
managed_by_tower=True,
|
managed_by_tower=True,
|
||||||
inputs={
|
inputs={
|
||||||
'fields': [{
|
'fields': [{
|
||||||
|
|||||||
Reference in New Issue
Block a user