mirror of
https://github.com/ansible/awx.git
synced 2026-07-09 15:28:05 -02:30
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:
24
awx/main/migrations/0147_validate_ee_image_field.py
Normal file
24
awx/main/migrations/0147_validate_ee_image_field.py
Normal 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',
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user