From 26052f310bb977aa1538933b46667a1e9c6ef440 Mon Sep 17 00:00:00 2001 From: nchilaka Date: Tue, 18 Feb 2020 12:27:49 +0530 Subject: [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 --- glustolibs-gluster/glustolibs/gluster/volume_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glustolibs-gluster') 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) ) -- cgit