Fix Chronos tasks cleanup
Convert the iterator to list for the logging purposes. TrivialFix Change-Id: I962e3461b9e583be745c418186ed131e6ec0f2fb
This commit is contained in:
parent
245373fbd4
commit
aa41d36169
|
@ -19,7 +19,6 @@ import operator
|
|||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
import requests
|
||||
import six
|
||||
from six.moves.urllib import parse
|
||||
|
||||
from kolla_mesos.common import retry_utils
|
||||
|
@ -122,8 +121,8 @@ class Client(object):
|
|||
raise exception.ChronosException('Failed to remove tasks from job')
|
||||
|
||||
def remove_all_jobs(self, with_tasks=True):
|
||||
job_names = six.moves.map(operator.itemgetter('name'), self.get_jobs())
|
||||
LOG.debug('Found chronos jobs: %s', list(job_names))
|
||||
job_names = list(map(operator.itemgetter('name'), self.get_jobs()))
|
||||
LOG.debug('Found chronos jobs: %s', job_names)
|
||||
|
||||
for job_name in job_names:
|
||||
if with_tasks:
|
||||
|
|
Loading…
Reference in New Issue