Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError exception when running execute() #693

marcinkuzminski opened this issue Jul 27, 2012 · 1 comment

KeyError exception when running execute() #693

marcinkuzminski opened this issue Jul 27, 2012 · 1 comment


Copy link

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.

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants