mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
lint
This commit is contained in:
@@ -6,7 +6,7 @@ import platform
|
|||||||
import distro
|
import distro
|
||||||
|
|
||||||
from django.db import connection
|
from django.db import connection
|
||||||
from django.db.models import Count, Max, Min
|
from django.db.models import Count
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib.sessions.models import Session
|
from django.contrib.sessions.models import Session
|
||||||
from django.utils.timezone import now, timedelta
|
from django.utils.timezone import now, timedelta
|
||||||
|
|||||||
@@ -253,10 +253,9 @@ class TaskManager:
|
|||||||
}
|
}
|
||||||
dependencies = [{'type': get_type_for_model(type(t)), 'id': t.id} for t in dependent_tasks]
|
dependencies = [{'type': get_type_for_model(type(t)), 'id': t.id} for t in dependent_tasks]
|
||||||
|
|
||||||
controller_node = None
|
|
||||||
if task.supports_isolation() and rampart_group.controller_id:
|
if task.supports_isolation() and rampart_group.controller_id:
|
||||||
try:
|
try:
|
||||||
controller_node = rampart_group.choose_online_controller_node()
|
rampart_group.choose_online_controller_node()
|
||||||
except IndexError:
|
except IndexError:
|
||||||
logger.debug("No controllers available in group {} to run {}".format(rampart_group.name, task.log_format))
|
logger.debug("No controllers available in group {} to run {}".format(rampart_group.name, task.log_format))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user