]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
lsb.py: fix subprocess handling and raising error
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 21 Mar 2013 14:51:48 +0000 (15:51 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 21 Mar 2013 14:51:48 +0000 (15:51 +0100)
commit2d0cfee9d3893b76acd584a8e264b65e7bf03d0d
tree99b2eeb599fb1427e7d2eff1069b002ff0973bdc
parenta0759f77d3224492e1664c476980c6b45bd3f7a0
lsb.py: fix subprocess handling and raising error

Some fixes for lsb subprocess handling and error raising:
- use proper variable naming (p vs process)
- use process.communicate() instead of p.stdout.read()
- fix subprocess.CalledProcessError() output=

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
ceph_deploy/lsb.py