mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
execution model pull container options added
This commit is contained in:
parent
6a7520d10f
commit
92f0af684c
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user