summaryrefslogtreecommitdiffstats
path: root/geo-replication/src
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-10-29 18:23:17 +0530
committerAmar Tumballi <amarts@redhat.com>2018-10-30 13:13:08 +0000
commit5987b3388126a3c5e77481913cbaa4142117d19a (patch)
tree5da588b06b20dcbe04a5cfa863c9df3d3abe0995 /geo-replication/src
parent33e96100e17e9a293db6d63d9d5449d6c2d69376 (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. fixes: bz#1643929 Signed-off-by: Kotresh HR <khiremat@redhat.com> Change-Id: Iaf1a937ed0136b3b2058230c75fa89a215d8a5eb
Diffstat (limited to 'geo-replication/src')
-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 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 = ""