mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Indentation error causing forks to not be parallel. Ahem :)
This commit is contained in:
parent
32f574b24d
commit
09e690fd7c
1 changed files with 8 additions and 8 deletions
|
@ -75,7 +75,7 @@ class Runner(object):
|
||||||
remote_port=C.DEFAULT_REMOTE_PORT, background=0, basedir=None, setup_cache=None,
|
remote_port=C.DEFAULT_REMOTE_PORT, background=0, basedir=None, setup_cache=None,
|
||||||
transport='paramiko', conditional='True', groups={}, callbacks=None, verbose=False,
|
transport='paramiko', conditional='True', groups={}, callbacks=None, verbose=False,
|
||||||
debug=False, sudo=False, extra_vars=None):
|
debug=False, sudo=False, extra_vars=None):
|
||||||
|
|
||||||
if setup_cache is None:
|
if setup_cache is None:
|
||||||
setup_cache = {}
|
setup_cache = {}
|
||||||
if basedir is None:
|
if basedir is None:
|
||||||
|
@ -637,13 +637,13 @@ class Runner(object):
|
||||||
prc.start()
|
prc.start()
|
||||||
workers.append(prc)
|
workers.append(prc)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for worker in workers:
|
for worker in workers:
|
||||||
worker.join()
|
worker.join()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
for worker in workers:
|
for worker in workers:
|
||||||
worker.terminate()
|
worker.terminate()
|
||||||
worker.join()
|
worker.join()
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
while not result_queue.empty():
|
while not result_queue.empty():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue