From 8aa37de27d6d693f104ce2051a0ec7bf59013f85 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Sun, 13 Mar 2016 23:28:10 +0100 Subject: [PATCH] glusterfs.common: GlusterManager.gluster_call error report fix Show the proper execution failure summary rendered by ProcessExecutionError.__str__ instead of extracting partial information from the ProcessExecutionError instance by ad hoc means. Change-Id: I8dcbfd301752c24686cb6ca7bd2505dc2d5c0464 Closes-bug: #1554607 --- manila/share/drivers/glusterfs/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manila/share/drivers/glusterfs/common.py b/manila/share/drivers/glusterfs/common.py index 70238d1929..e383af1d8e 100644 --- a/manila/share/drivers/glusterfs/common.py +++ b/manila/share/drivers/glusterfs/common.py @@ -209,7 +209,7 @@ class GlusterManager(object): _("GlusterFS management command '%(cmd)s' failed " "with details as follows:\n%(details)s.") % { 'cmd': ' '.join(args), - 'details': exc.args[0]}) + 'details': exc}) return _gluster_call