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

Closed
marcinkuzminski opened this Issue Jul 27, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@marcinkuzminski

marcinkuzminski commented Jul 27, 2012

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/bootstrap.py", line 149, in <module>
    user='ubuntu', password='qweqwe')
  File "harmony/utils/bootstrap.py", line 75, in bootstrap_machine
    execute(_worker, hosts=target_hosts)
  File "...python2.7/site-packages/fabric/tasks.py", 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.

@bitprophet

This comment has been minimized.

Member

bitprophet commented Jul 27, 2012

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