The variable "results" was accidentally used for multiple different
things at the same time, which unintentionally discarded anything that
was supposed to be returned from the function...
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
imap = pool.imap(function, commands)
try:
- results = list(imap)
+ res = list(imap)
pool.close()
pool.join()
results = []
- for result in results:
+ for result in res:
if result is not None:
results.append(result)
return results