From 23a61baaccfa22b6a71f600d985760d8f9b2b22f 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. Backport of: > Patch: https://review.gluster.org/21507 > fixes: bz#1643929 > Signed-off-by: Kotresh HR > Change-Id: Iaf1a937ed0136b3b2058230c75fa89a215d8a5eb (cherry picked from commit 5987b3388126a3c5e77481913cbaa4142117d19a) fixes: bz#1644516 Signed-off-by: Kotresh HR Change-Id: Iaf1a937ed0136b3b2058230c75fa89a215d8a5eb --- geo-replication/src/peer_mountbroker.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geo-replication/src/peer_mountbroker.py.in b/geo-replication/src/peer_mountbroker.py.in index 8f2367b7d49..b44192bef2c 100644 --- a/geo-replication/src/peer_mountbroker.py.in +++ b/geo-replication/src/peer_mountbroker.py.in @@ -270,7 +270,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