diff --git a/awx/main/models/execution_environments.py b/awx/main/models/execution_environments.py index 51c7c251ea..84b6cd8c0a 100644 --- a/awx/main/models/execution_environments.py +++ b/awx/main/models/execution_environments.py @@ -12,6 +12,12 @@ class ExecutionEnvironment(CommonModel): class Meta: ordering = ('-created',) + PULL_CHOICES = [ + ('always', _("Always pull container before running.")), + ('missing', _("No pull option has been selected")), + ('never', _("Never cull container before running")) + ] + organization = models.ForeignKey( 'Organization', null=True, @@ -35,6 +41,11 @@ class ExecutionEnvironment(CommonModel): default=None, on_delete=models.SET_NULL, ) + container_options = models.CharField( + max_length=1024, + choices=PULL_CHOICES, + help_text=_('Pull image before running?'), + ) def get_absolute_url(self, request=None): return reverse('api:execution_environment_detail', kwargs={'pk': self.pk}, request=request)