mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 06:26:00 -03:30
Fix some lint
This commit is contained in:
@@ -4,7 +4,6 @@ import traceback
|
|||||||
from queue import Empty as QueueEmpty
|
from queue import Empty as QueueEmpty
|
||||||
|
|
||||||
from django.utils.timezone import now as tz_now
|
from django.utils.timezone import now as tz_now
|
||||||
from django.conf import settings
|
|
||||||
from django.db import DatabaseError, OperationalError, connection as django_connection
|
from django.db import DatabaseError, OperationalError, connection as django_connection
|
||||||
from django.db.utils import InterfaceError, InternalError, IntegrityError
|
from django.db.utils import InterfaceError, InternalError, IntegrityError
|
||||||
|
|
||||||
|
|||||||
@@ -842,7 +842,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
|||||||
update_fields.append('unified_job_template')
|
update_fields.append('unified_job_template')
|
||||||
|
|
||||||
if self.cancel_flag and not self.canceled_on:
|
if self.cancel_flag and not self.canceled_on:
|
||||||
# Record the 'canceled' time.
|
# Record the 'canceled' time.
|
||||||
self.canceled_on = now()
|
self.canceled_on = now()
|
||||||
if 'canceled_on' not in update_fields:
|
if 'canceled_on' not in update_fields:
|
||||||
update_fields.append('canceled_on')
|
update_fields.append('canceled_on')
|
||||||
|
|||||||
Reference in New Issue
Block a user