]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: fix ceph-volume command to write stdout to stdout
authorSage Weil <sage@redhat.com>
Wed, 23 Oct 2019 19:04:30 +0000 (14:04 -0500)
committerSage Weil <sage@redhat.com>
Wed, 23 Oct 2019 19:45:34 +0000 (14:45 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon

index b7b25edc149a0189baba88e774f0c9032a167c4b..e3426ca5447159fb39ca233bfad7b3ef534cd4cd 100755 (executable)
@@ -1149,7 +1149,9 @@ def command_ceph_volume():
         podman_args=['--privileged'],
         volume_mounts=mounts,
     )
-    call_throws(c.run_cmd(), verbose=True)
+    out, err, code = call_throws(c.run_cmd(), verbose=True)
+    if not code:
+        print(out)
 
 ##################################