Add validator for ee image field name

awxkit default ee image name is now a fixed valid (but bogus) name, rather than random unicode
This commit is contained in:
Seth Foster
2021-06-14 22:51:36 -04:00
parent ef67f9c65d
commit 61846e88ca
5 changed files with 156 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
# Generated by Django 2.2.16 on 2021-06-15 02:49
import awx.main.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0146_add_insights_inventory'),
]
operations = [
migrations.AlterField(
model_name='executionenvironment',
name='image',
field=models.CharField(
help_text='The full image location, including the container registry, image name, and version tag.',
max_length=1024,
validators=[awx.main.validators.validate_container_image_name],
verbose_name='image location',
),
),
]