From: Joe Handzik Date: Thu, 9 Apr 2015 22:05:35 +0000 (-0500) Subject: Update the run function to cascade the called process's return code back to its caller X-Git-Tag: v1.5.24~13^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4fce039e050f4657f488371f6da84e724b15b60c;p=ceph-deploy.git Update the run function to cascade the called process's return code back to its caller --- diff --git a/vendor.py b/vendor.py index 5a88856..f56f1c3 100644 --- a/vendor.py +++ b/vendor.py @@ -31,6 +31,8 @@ def run(cmd): if result.wait(): print_error(result.stdout.readlines(), result.stderr.readlines()) + return result.returncode + def print_error(stdout, stderr): print '*'*80