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-08 14:36:32 +0000
commit888de139580c82347d962f398124e6c6e3ace5f0 (patch)
treea987bea8cc0124992a352a9dfe8e00943f3d2bb3
parenta2e5f1dbdfff7d1b09b383f5f916d6ae0bc6cb73 (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: > BUG: 1643929 > Signed-off-by: Kotresh HR <khiremat@redhat.com> > Change-Id: Iaf1a937ed0136b3b2058230c75fa89a215d8a5eb (cherry picked from commit 5987b3388126a3c5e77481913cbaa4142117d19a) fixes: bz#1644515 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 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 = ""