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
This commit is contained in:
Csaba Henk 2016-03-13 23:28:10 +01:00
parent cd72947258
commit 8aa37de27d
1 changed files with 1 additions and 1 deletions

View File

@ -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