summaryrefslogtreecommitdiffstats
path: root/geo-replication/syncdaemon/gsyncd.py
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2017-11-23 15:28:07 +0530
committerAravinda VK <avishwan@redhat.com>2017-11-24 13:59:24 +0000
commitd395387f601c9fb57a5fd9f19385b4de3c870de8 (patch)
tree522bc9fc7bdecddb90ce84deab5103745ca2b7b4 /geo-replication/syncdaemon/gsyncd.py
parentcd27e0ffb8afd69c1df28c38808c49a3af8cc75d (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/gsyncd.py')
-rw-r--r--geo-replication/syncdaemon/gsyncd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/gsyncd.py b/geo-replication/syncdaemon/gsyncd.py
index fbab5cbf386..f58b532bcda 100644
--- a/geo-replication/syncdaemon/gsyncd.py
+++ b/geo-replication/syncdaemon/gsyncd.py
@@ -129,6 +129,7 @@ def main():
p.add_argument("-c", "--config-file", help="Config File")
p.add_argument("--local-path", help="Local Brick Path")
p.add_argument("--debug", action="store_true")
+ p.add_argument("--json", action="store_true")
# Config-check
p = sp.add_parser("config-check")
@@ -146,6 +147,7 @@ def main():
p.add_argument("--show-defaults", action="store_true")
p.add_argument("--only-value", action="store_true")
p.add_argument("--use-underscore", action="store_true")
+ p.add_argument("--json", action="store_true")
# Config-set
p = sp.add_parser("config-set")