]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: include output of failed command in exception 20497/head
authorKefu Chai <kchai@redhat.com>
Tue, 20 Feb 2018 12:49:42 +0000 (20:49 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 20 Feb 2018 12:49:42 +0000 (20:49 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph-disk/ceph_disk/main.py

index dba0454828ddb09ed8bf1a4ab7f0ff11adc21082..66d8f4416bb642ae06dd0301e976dfb22b6ab76f 100644 (file)
@@ -1251,7 +1251,7 @@ def get_conf_with_default(cluster, variable):
     except subprocess.CalledProcessError as e:
         raise Error(
             'getting variable from configuration failed',
-            e,
+            e, e.output,
         )
 
     value = str(out).split('\n', 1)[0]