From e2d940ef9677d12a7587ab13fd8e42b4545699d5 Mon Sep 17 00:00:00 2001 From: Joshua Schmid Date: Wed, 11 Mar 2020 16:35:57 +0100 Subject: [PATCH] mgr/cephadm: fix dump output by formatting to json first Signed-off-by: Joshua Schmid --- src/pybind/mgr/cephadm/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.3