]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: process: disable stdin param of run() 19276/head
authorKefu Chai <kchai@redhat.com>
Fri, 1 Dec 2017 16:43:21 +0000 (00:43 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 4 Dec 2017 14:38:22 +0000 (22:38 +0800)
commit6df444cf33a251f5dcb536606b44af696cdb4ed5
treec1b981b46ec438b4d1ef57d7c7175e0811837d5d
parent46abd50f8bcbd347d577581ae42156b718556158
ceph-volume: process: disable stdin param of run()

we cannot use process.communicate() to feed the Popen with input,
because, upon return of process.communicate() the stdout,stderr are
closed. see https://docs.python.org/2/library/subprocess.html#subprocess.Popen.communicate .

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph-volume/ceph_volume/process.py