mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
enforce JT/Job.timeout >= 0
see: https://github.com/ansible/tower/issues/2421
This commit is contained in:
@@ -134,7 +134,7 @@ class JobOptions(BaseModel):
|
||||
allow_simultaneous = models.BooleanField(
|
||||
default=False,
|
||||
)
|
||||
timeout = models.IntegerField(
|
||||
timeout = models.PositiveIntegerField(
|
||||
blank=True,
|
||||
default=0,
|
||||
help_text=_("The amount of time (in seconds) to run before the task is canceled."),
|
||||
|
||||
Reference in New Issue
Block a user