From 549dda2d27db336acc5aff97cca2579d4e269b9c Mon Sep 17 00:00:00 2001 From: Vinayak Papnoi Date: Fri, 2 Aug 2019 14:43:16 +0530 Subject: 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 --- glustolibs-gluster/glustolibs/gluster/brickmux_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glustolibs-gluster/glustolibs/gluster') 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)) -- cgit