From 5987b3388126a3c5e77481913cbaa4142117d19a Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Mon, 29 Oct 2018 18:23:17 +0530 Subject: geo-rep/scripts: Fix traceback in gluster-mountbroker When 'gluster-mountbroker status' was issued, it crashes in a corner case with 'str object has not attribute get'. Fixed the same. fixes: bz#1643929 Signed-off-by: Kotresh HR Change-Id: Iaf1a937ed0136b3b2058230c75fa89a215d8a5eb --- geo-replication/src/peer_mountbroker.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'geo-replication/src/peer_mountbroker.py.in') diff --git a/geo-replication/src/peer_mountbroker.py.in b/geo-replication/src/peer_mountbroker.py.in index 83d385cb5eb..77b938646e8 100644 --- a/geo-replication/src/peer_mountbroker.py.in +++ b/geo-replication/src/peer_mountbroker.py.in @@ -273,7 +273,7 @@ class CliStatus(Cmd): for p in out: node_data = p.output - if node_data == "": + if node_data == "" or node_data == "N/A": node_data = {} users_row_data = "" -- cgit