From: Sage Weil Date: Fri, 28 Feb 2020 23:05:26 +0000 (-0600) Subject: mgr/orch: no extra whitespace in stored json specs X-Git-Tag: v15.1.1~191^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=45f944aa33fd87c588c0af4abb49d3b349f0d9b5;p=ceph.git mgr/orch: no extra whitespace in stored json specs Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index f24a7b36d954..cba4748bc1ef 100644 --- a/src/pybind/mgr/orchestrator/_interface.py +++ b/src/pybind/mgr/orchestrator/_interface.py @@ -1585,7 +1585,7 @@ class ServiceSpec(object): def to_json(self): return json.dumps(self, default=lambda o: o.__dict__, - sort_keys=True, indent=4) + sort_keys=True) def __repr__(self): return "{}({!r})".format(self.__class__.__name__, self.__dict__)