]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/ceph-crash.in: remove unused variable
authorSébastien Han <seb@redhat.com>
Mon, 28 Jun 2021 16:35:14 +0000 (18:35 +0200)
committerAdam King <adking@redhat.com>
Mon, 14 Mar 2022 15:30:29 +0000 (11:30 -0400)
stdout was never used so let's remove it.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 3089f0079a7fe5d2cd297d6eedd60a7b3249b42f)

src/ceph-crash.in

index c549dc11fe4be184a6df34a550b0c2c5d172e035..4858b2bb19e9ec64e1d4affe42678f509c820e23 100755 (executable)
@@ -41,11 +41,10 @@ def post_crash(path):
                   '-n', n,
                   'crash', 'post', '-i', '-'],
             stdin=subprocess.PIPE,
-            stdout=subprocess.PIPE,
             stderr=subprocess.PIPE,
         )
         f = open(os.path.join(path, 'meta'), 'rb')
-        stdout, stderr = pr.communicate(input=f.read())
+        stderr = pr.communicate(input=f.read())
         rc = pr.wait()
         f.close()
         if rc != 0: