Disallow --forks 0

Without at least one worker process, things break:

Traceback (most recent call last):
  File "/home/ams/extern/ansible/ansible/lib/ansible/executor/process/result.py", line 103, in run
    result = self._read_worker_result()
  File "/home/ams/extern/ansible/ansible/lib/ansible/executor/process/result.py", line 69, in _read_worker_result
    (worker_prc, main_q, rslt_q) = self._workers[self._cur_worker]
IndexError: list index out of range
This commit is contained in:
Abhijit Menon-Sen 2015-08-02 14:10:42 +05:30
parent cf35bdbdf9
commit 8de70fa657
3 changed files with 7 additions and 3 deletions

View file

@ -76,7 +76,7 @@ class PlaybookCLI(CLI):
raise AnsibleOptionsError("You must specify a playbook file to run")
self.display.verbosity = self.options.verbosity
self.validate_conflicts(runas_opts=True, vault_opts=True)
self.validate_conflicts(runas_opts=True, vault_opts=True, fork_opts=True)
def run(self):