From 48175c3a30c57537e967acef6a958ebdfd28d057 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 20 Feb 2018 20:49:42 +0800 Subject: [PATCH] ceph-disk: include output of failed command in exception Signed-off-by: Kefu Chai --- src/ceph-disk/ceph_disk/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py index dba0454828ddb..66d8f4416bb64 100644 --- a/src/ceph-disk/ceph_disk/main.py +++ b/src/ceph-disk/ceph_disk/main.py @@ -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] -- 2.39.5