]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
task/restart: Handle error from script correctly
authorSam Lang <sam.lang@inktank.com>
Tue, 19 Mar 2013 13:08:05 +0000 (08:08 -0500)
committerSam Lang <sam.lang@inktank.com>
Tue, 19 Mar 2013 13:10:30 +0000 (08:10 -0500)
commit1b0369bd95fd0dfc6f51f98ccd42d3fe598039f6
tree0513a7f96eb29ade3ddf9e73649b2816f7055ad7
parent23557907d25a78ee422aafe06755378dac24bc1c
task/restart:  Handle error from script correctly

The exitstatus on the process is a gevent.AsyncResult
(not an int).  Use the try/except pattern for handling
errors instead.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
teuthology/task/restart.py