Change some usage of list.append to list.extend
In some places, we were appending a list to a list, when the idea was to extend. Change-Id: Ifb60fbd57796ec05ed104ff04d51f4d76193be40
This commit is contained in:
parent
3499d899c8
commit
b44b2db1b3
|
@ -82,7 +82,7 @@ class Engine(object):
|
|||
self.futures.append(serializer)
|
||||
|
||||
# Start react scripts.
|
||||
self.futures.append(self.start_react_scripts())
|
||||
self.futures.extend(self.start_react_scripts())
|
||||
|
||||
scheduler = self.executor.submit(self.schedule)
|
||||
self.futures.append(scheduler)
|
||||
|
@ -177,7 +177,7 @@ class Engine(object):
|
|||
|
||||
def repair_modified(self):
|
||||
LOG.info('Repair configuration changed')
|
||||
self.futures.append(self.start_react_scripts())
|
||||
self.futures.extend(self.start_react_scripts())
|
||||
|
||||
def start_watchdog(self, dir_to_watch):
|
||||
event_fn = {self.audit_cfg: self.audit_modified,
|
||||
|
@ -199,7 +199,7 @@ class Engine(object):
|
|||
**audit_cfg)
|
||||
audit_futures.append(future)
|
||||
if audit_futures:
|
||||
self.futures.append(audit_futures)
|
||||
self.futures.extend(audit_futures)
|
||||
except Exception:
|
||||
LOG.exception("Could not run all audits in %s at %s",
|
||||
audit_list, execution_time)
|
||||
|
|
Loading…
Reference in New Issue