diff options
author | Aravinda VK <avishwan@redhat.com> | 2017-11-23 15:28:07 +0530 |
---|---|---|
committer | Aravinda VK <avishwan@redhat.com> | 2017-11-24 13:59:24 +0000 |
commit | d395387f601c9fb57a5fd9f19385b4de3c870de8 (patch) | |
tree | 522bc9fc7bdecddb90ce84deab5103745ca2b7b4 /geo-replication/syncdaemon/gsyncdconfig.py | |
parent | cd27e0ffb8afd69c1df28c38808c49a3af8cc75d (diff) |
geo-rep: JSON output for status and config
For Glusterd2 integration, JSON output of status and config
is very useful from gsyncd
Fixes: #361
Change-Id: I53c61f19033ad4ac601ea49469e4e7c7c8e9af3d
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon/gsyncdconfig.py')
-rw-r--r-- | geo-replication/syncdaemon/gsyncdconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/gsyncdconfig.py b/geo-replication/syncdaemon/gsyncdconfig.py index 5aa354b8e6a..a5843801671 100644 --- a/geo-replication/syncdaemon/gsyncdconfig.py +++ b/geo-replication/syncdaemon/gsyncdconfig.py @@ -329,7 +329,7 @@ def to_float(value): def to_bool(value): - return True if value == "true" else False + return True if value in ["true", "True"] else False def get(name, default_value=None): |