mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
@@ -25,8 +25,8 @@ class Migration(migrations.Migration):
|
|||||||
('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', 'SSH'), (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)),
|
('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)),
|
('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.')),
|
||||||
('created_by', models.ForeignKey(related_name="{u'class': 'credentialtype', u'app_label': 'main'}(class)s_created+", on_delete=django.db.models.deletion.SET_NULL, default=None, editable=False, to=settings.AUTH_USER_MODEL, null=True)),
|
('created_by', models.ForeignKey(related_name="{u'class': 'credentialtype', u'app_label': 'main'}(class)s_created+", on_delete=django.db.models.deletion.SET_NULL, default=None, editable=False, to=settings.AUTH_USER_MODEL, null=True)),
|
||||||
('modified_by', models.ForeignKey(related_name="{u'class': 'credentialtype', u'app_label': 'main'}(class)s_modified+", on_delete=django.db.models.deletion.SET_NULL, default=None, editable=False, to=settings.AUTH_USER_MODEL, null=True)),
|
('modified_by', models.ForeignKey(related_name="{u'class': 'credentialtype', u'app_label': 'main'}(class)s_modified+", on_delete=django.db.models.deletion.SET_NULL, default=None, editable=False, to=settings.AUTH_USER_MODEL, null=True)),
|
||||||
('tags', taggit.managers.TaggableManager(to='taggit.Tag', through='taggit.TaggedItem', blank=True, help_text='A comma-separated list of tags.', verbose_name='Tags')),
|
('tags', taggit.managers.TaggableManager(to='taggit.Tag', through='taggit.TaggedItem', blank=True, help_text='A comma-separated list of tags.', verbose_name='Tags')),
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='credential',
|
model_name='credential',
|
||||||
name='inputs',
|
name='inputs',
|
||||||
field=awx.main.fields.CredentialInputField(default={}, help_text='Data structure used to specify input values (e.g., {"username": "jane-doe", "password": "secret"}). Valid fields and their requirements vary depending on the fields defined on the chosen CredentialType.', blank=True),
|
field=awx.main.fields.CredentialInputField(default={}, 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.', blank=True),
|
||||||
),
|
),
|
||||||
migrations.RemoveField(
|
migrations.RemoveField(
|
||||||
model_name='job',
|
model_name='job',
|
||||||
|
|||||||
@@ -233,10 +233,9 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique, ResourceMixin):
|
|||||||
inputs = CredentialInputField(
|
inputs = CredentialInputField(
|
||||||
blank=True,
|
blank=True,
|
||||||
default={},
|
default={},
|
||||||
help_text=_('Data structure used to specify input values (e.g., '
|
help_text=_('Enter inputs using either JSON or YAML syntax. Use the '
|
||||||
'{"username": "jane-doe", "password": "secret"}). Valid '
|
'radio button to toggle between the two. Refer to the '
|
||||||
'fields and their requirements vary depending on the '
|
'Ansible Tower documentation for example syntax.')
|
||||||
'fields defined on the chosen CredentialType.')
|
|
||||||
)
|
)
|
||||||
admin_role = ImplicitRoleField(
|
admin_role = ImplicitRoleField(
|
||||||
parent_role=[
|
parent_role=[
|
||||||
@@ -419,11 +418,17 @@ class CredentialType(CommonModelNameNotUnique):
|
|||||||
)
|
)
|
||||||
inputs = CredentialTypeInputField(
|
inputs = CredentialTypeInputField(
|
||||||
blank=True,
|
blank=True,
|
||||||
default={}
|
default={},
|
||||||
|
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 = CredentialTypeInjectorField(
|
injectors = CredentialTypeInjectorField(
|
||||||
blank=True,
|
blank=True,
|
||||||
default={}
|
default={},
|
||||||
|
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.')
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_absolute_url(self, request=None):
|
def get_absolute_url(self, request=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user