summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-10-29 18:23:17 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-11-05 20:37:25 +0000
commit23a61baaccfa22b6a71f600d985760d8f9b2b22f (patch)
tree7b0b8a36b7caa6c938e8c8da317db0b75aee719a
parentf79c01b0ddd4770808eb1f9a384dba66cdd1dc37 (diff)
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 <khiremat@redhat.com> > Change-Id: Iaf1a937ed0136b3b2058230c75fa89a215d8a5eb (cherry picked from commit 5987b3388126a3c5e77481913cbaa4142117d19a) fixes: bz#1644516 Signed-off-by: Kotresh HR <khiremat@redhat.com> Change-Id: Iaf1a937ed0136b3b2058230c75fa89a215d8a5eb
-rw-r--r--geo-replication/src/peer_mountbroker.py.in2
1 files changed, 1 insertions, 1 deletions
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 = ""