From: Joshua Schmid Date: Wed, 11 Mar 2020 15:35:57 +0000 (+0100) Subject: mgr/cephadm: fix dump output by formatting to json first X-Git-Tag: v15.1.1~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2d940ef9677d12a7587ab13fd8e42b4545699d5;p=ceph.git mgr/cephadm: fix dump output by formatting to json first Signed-off-by: Joshua Schmid --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 2b0b37edb034..3d7c95add326 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -2990,7 +2990,7 @@ receivers: specs = list() for service_name, spec in self.spec_store.specs.items(): specs.append('---') - specs.append(yaml.dump(spec)) + specs.append(yaml.safe_dump(spec.to_json())) return trivial_result(specs) def apply_service_config(self, spec_document: str) -> orchestrator.Completion: