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

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

KeyError exception when running execute() #693

marcinkuzminski opened this issue Jul 27, 2012 · 1 comment

Comments

@marcinkuzminski
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/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
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants