KeyError exception when running execute() #693

marcinkuzminski opened this Issue Jul 27, 2012 · 1 comment


None yet

2 participants


HI, when the script fails in pararell mode and i use execute to run several tasks i get this traceback:

Traceback (most recent call last):
  File "harmony/utils/", line 149, in <module>
    user='ubuntu', password='qweqwe')
  File "harmony/utils/", line 75, in bootstrap_machine
    execute(_worker, hosts=target_hosts)
  File "...python2.7/site-packages/fabric/", line 323, in execute
    if isinstance(d['results'], BaseException):
KeyError: 'results'

Not sure how results is missing, but replacing that with d.get('results') fixes the issue.


This is an edge case in the parallel error handling where we're trying to avoid raising SystemExit errors twice, looks like we're not correctly adding it to the result data structure. Should be easily fixed.

@bitprophet bitprophet added a commit that closed this issue Jul 27, 2012
@bitprophet bitprophet Fix #693 9f0ff89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment