summaryrefslogtreecommitdiffstats
path: root/geo-replication
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2015-05-09 00:26:14 +0530
committerVijay Bellur <vbellur@redhat.com>2015-05-08 20:28:13 -0700
commit77edf5f7f78d5a551526b0d9bef8e0c0a8f22c1c (patch)
tree33e27c90b7e5e5f4e2919c5c34425d04a9da0d4a /geo-replication
parent5fda96d954dd06dbacc6b2851d4ba058ec1295a2 (diff)
geo-rep: Fix corrupt gsyncd output
When gsyncd fails with Python traceback, glusterd fails parsing gsyncd output and shows error. BUG: 1219937 Change-Id: Ic32fd897c49a5325294a6588351b539c6e124338 Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/10694 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'geo-replication')
-rw-r--r--geo-replication/syncdaemon/gsyncdstatus.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/geo-replication/syncdaemon/gsyncdstatus.py b/geo-replication/syncdaemon/gsyncdstatus.py
index 7268e26d629..57692f8fab0 100644
--- a/geo-replication/syncdaemon/gsyncdstatus.py
+++ b/geo-replication/syncdaemon/gsyncdstatus.py
@@ -310,13 +310,13 @@ class GeorepStatus(object):
if data["worker_status"] not in ["Active", "Passive"]:
data["slave_node"] = DEFAULT_STATUS
- if data["last_synced_utc"] == 0:
+ if data.get("last_synced_utc", 0) == 0:
data["last_synced_utc"] = DEFAULT_STATUS
- if data["checkpoint_completion_time_utc"] == 0:
+ if data.get("checkpoint_completion_time_utc", 0) == 0:
data["checkpoint_completion_time_utc"] = DEFAULT_STATUS
- if data["checkpoint_time_utc"] == 0:
+ if data.get("checkpoint_time_utc", 0) == 0:
data["checkpoint_time_utc"] = DEFAULT_STATUS
return data