mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Remove "pull" field from EE mixin
I think this should go on the EE definition itself
This commit is contained in:
@@ -649,7 +649,7 @@ class UnifiedJobTemplateSerializer(BaseSerializer):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = UnifiedJobTemplate
|
model = UnifiedJobTemplate
|
||||||
fields = ('*', 'last_job_run', 'last_job_failed',
|
fields = ('*', 'last_job_run', 'last_job_failed',
|
||||||
'next_job_run', 'status', 'execution_environment', 'pull')
|
'next_job_run', 'status', 'execution_environment')
|
||||||
|
|
||||||
def get_related(self, obj):
|
def get_related(self, obj):
|
||||||
res = super(UnifiedJobTemplateSerializer, self).get_related(obj)
|
res = super(UnifiedJobTemplateSerializer, self).get_related(obj)
|
||||||
@@ -716,7 +716,7 @@ class UnifiedJobSerializer(BaseSerializer):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = UnifiedJob
|
model = UnifiedJob
|
||||||
fields = ('*', 'unified_job_template', 'launch_type', 'status',
|
fields = ('*', 'unified_job_template', 'launch_type', 'status',
|
||||||
'execution_environment', 'pull',
|
'execution_environment',
|
||||||
'failed', 'started', 'finished', 'canceled_on', 'elapsed', 'job_args',
|
'failed', 'started', 'finished', 'canceled_on', 'elapsed', 'job_args',
|
||||||
'job_cwd', 'job_env', 'job_explanation',
|
'job_cwd', 'job_env', 'job_explanation',
|
||||||
'execution_node', 'controller_node',
|
'execution_node', 'controller_node',
|
||||||
|
|||||||
@@ -16,16 +16,6 @@ class Migration(migrations.Migration):
|
|||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.AddField(
|
|
||||||
model_name='unifiedjob',
|
|
||||||
name='pull',
|
|
||||||
field=models.BooleanField(default=True),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='unifiedjobtemplate',
|
|
||||||
name='pull',
|
|
||||||
field=models.BooleanField(default=True),
|
|
||||||
),
|
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='ExecutionEnvironment',
|
name='ExecutionEnvironment',
|
||||||
fields=[
|
fields=[
|
||||||
|
|||||||
@@ -454,7 +454,6 @@ class ExecutionEnvironmentMixin(models.Model):
|
|||||||
related_name='%(class)ss',
|
related_name='%(class)ss',
|
||||||
help_text=_('The container image to be used for execution.'),
|
help_text=_('The container image to be used for execution.'),
|
||||||
)
|
)
|
||||||
pull = models.BooleanField(default=True)
|
|
||||||
|
|
||||||
|
|
||||||
class CustomVirtualEnvMixin(models.Model):
|
class CustomVirtualEnvMixin(models.Model):
|
||||||
|
|||||||
Reference in New Issue
Block a user