diff options
author | Aravinda VK <avishwan@redhat.com> | 2015-05-05 18:20:19 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-05-08 02:25:17 -0700 |
commit | 0b573c3d93159d4e801714211343b220c0f45e1e (patch) | |
tree | 5156dd6ab5d90365cc6c8c30ba23897a9e256efc /geo-replication | |
parent | bb4091e67a23ac83b1d8fe5a3a3db45549faac67 (diff) |
geo-rep: Fix Default values in Xml output
Default Values for last_synced, checkpoint_time and
checkpoint_completion_time was zero instead of 'N/A'
BUG: 1218586
Change-Id: I8a96688588dd6e22edf8bc06ee0f3afe12a9e0f5
Reviewed-on: http://review.gluster.org/10580
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/10636
Reviewed-by: Saravanakumar Arumugam <sarumuga@redhat.com>
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.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/gsyncdstatus.py b/geo-replication/syncdaemon/gsyncdstatus.py index a49b9c23dea..7268e26d629 100644 --- a/geo-replication/syncdaemon/gsyncdstatus.py +++ b/geo-replication/syncdaemon/gsyncdstatus.py @@ -310,6 +310,15 @@ class GeorepStatus(object): if data["worker_status"] not in ["Active", "Passive"]: data["slave_node"] = DEFAULT_STATUS + if data["last_synced_utc"] == 0: + data["last_synced_utc"] = DEFAULT_STATUS + + if data["checkpoint_completion_time_utc"] == 0: + data["checkpoint_completion_time_utc"] = DEFAULT_STATUS + + if data["checkpoint_time_utc"] == 0: + data["checkpoint_time_utc"] = DEFAULT_STATUS + return data def print_status(self, checkpoint_time=0): |