summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster
diff options
context:
space:
mode:
authorVinayak Papnoi <vpapnoi@redhat.com>2019-08-02 14:43:16 +0530
committerVinayak Papnoi <vpapnoi@redhat.com>2019-08-02 14:43:16 +0530
commit549dda2d27db336acc5aff97cca2579d4e269b9c (patch)
treec64eca091b50b23db0fecd59763c8d7539127cf4 /glustolibs-gluster
parent37ab92f00ca2303d98c03616a0e2dd7ce11f1c37 (diff)
Fix brickmux_ops library
The function 'is_brick_mux_enabled' has an incorrect check for the ValueError. The format specifier was incorrect and missing. It has been added with this fix. Change-Id: Idac536de8b9916207ebdda1ba6c981837f01a220 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
Diffstat (limited to 'glustolibs-gluster')
-rwxr-xr-xglustolibs-gluster/glustolibs/gluster/brickmux_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/brickmux_ops.py b/glustolibs-gluster/glustolibs/gluster/brickmux_ops.py
index 887410759..48ffc0b60 100755
--- a/glustolibs-gluster/glustolibs/gluster/brickmux_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/brickmux_ops.py
@@ -56,7 +56,7 @@ def is_brick_mux_enabled(mnode):
elif get_brick_mux_status(mnode) in negative_states:
return False
else:
- raise ValueError('Brick mux status % is incorrect',
+ raise ValueError('Brick mux status %s is incorrect',
get_brick_mux_status(mnode))