mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 05:17:36 -02:30
migration for container options for EE model
Co-authored-by: Shane McDonald <me@shanemcd.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 2.2.16 on 2021-01-27 22:31
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('main', '0125_more_ee_modeling_changes'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='executionenvironment',
|
||||||
|
name='container_options',
|
||||||
|
field=models.CharField(choices=[('always', 'Always pull container before running.'), ('missing', 'No pull option has been selected'), ('never', 'Never pull container before running')], default='missing', help_text='Pull image before running?', max_length=1024),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -15,7 +15,7 @@ class ExecutionEnvironment(CommonModel):
|
|||||||
PULL_CHOICES = [
|
PULL_CHOICES = [
|
||||||
('always', _("Always pull container before running.")),
|
('always', _("Always pull container before running.")),
|
||||||
('missing', _("No pull option has been selected")),
|
('missing', _("No pull option has been selected")),
|
||||||
('never', _("Never cull container before running"))
|
('never', _("Never pull container before running"))
|
||||||
]
|
]
|
||||||
|
|
||||||
organization = models.ForeignKey(
|
organization = models.ForeignKey(
|
||||||
@@ -44,6 +44,7 @@ class ExecutionEnvironment(CommonModel):
|
|||||||
container_options = models.CharField(
|
container_options = models.CharField(
|
||||||
max_length=1024,
|
max_length=1024,
|
||||||
choices=PULL_CHOICES,
|
choices=PULL_CHOICES,
|
||||||
|
default='missing',
|
||||||
help_text=_('Pull image before running?'),
|
help_text=_('Pull image before running?'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user