From d395387f601c9fb57a5fd9f19385b4de3c870de8 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Thu, 23 Nov 2017 15:28:07 +0530 Subject: 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 --- geo-replication/syncdaemon/gsyncd.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'geo-replication/syncdaemon/gsyncd.py') 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") -- cgit