summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornchilaka <nchilaka@redhat.com>2020-02-18 12:27:49 +0530
committerBala Konda Reddy M <bala12352@gmail.com>2020-02-19 06:06:38 +0000
commit26052f310bb977aa1538933b46667a1e9c6ef440 (patch)
treed1e971cc94eacfc2dcc998e3cd7d9b1517f08a7b
parent3fe9165451733890ddd4e6b913160c249ec6ecf2 (diff)
[Lib Fix] Typo leading to error not being published
Instead of calling g.log.error, we were calling g.log.err Due to this instead of throwing the right error message in, say, when doing volume cleanup, it was throwing ambiguos traceback. Change-Id: I39887ce08756eaf29df2d99f73cc7795a4d2c065
-rw-r--r--glustolibs-gluster/glustolibs/gluster/volume_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/volume_ops.py b/glustolibs-gluster/glustolibs/gluster/volume_ops.py
index 9bc86498c..8445efa11 100644
--- a/glustolibs-gluster/glustolibs/gluster/volume_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/volume_ops.py
@@ -263,7 +263,7 @@ def volume_delete(mnode, volname, xfail=False):
ret, out, err = g.run(node, "rm -rf %s" % vol_dir)
if ret != 0:
if not xfail:
- g.log.err(
+ g.log.error(
"Unexpected: rm -rf {} failed ({}: {})"
.format(vol_dir, out, err)
)