From 1d6520c86c8c92fc34db79e31f4cee6b0f46c2da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juan=20Miguel=20Olmo=20Mart=C3=ADnez?= Date: Tue, 11 Dec 2018 20:29:46 +0100 Subject: [PATCH] mgr/ansible: Add create/remove osd functionality MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - Create/remove osd functionality - Addressed typo find by @tchaikov - Improved code in functional orchestrator methods following @leseb suggestions - Addressed @sebastian-philipp suggestions - Use specification for create OSD in all the orchestrators - fixed errors calling HandleCommandResult Signed-off-by: Juan Miguel Olmo Martínez --- src/pybind/mgr/orchestrator_cli/module.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/orchestrator_cli/module.py b/src/pybind/mgr/orchestrator_cli/module.py index b7c1c4617ac..1ec99d032e1 100644 --- a/src/pybind/mgr/orchestrator_cli/module.py +++ b/src/pybind/mgr/orchestrator_cli/module.py @@ -234,8 +234,8 @@ class OrchestratorCli(orchestrator.OrchestratorClientMixin, MgrModule): completion = self.create_osds(spec, all_hosts) self._orchestrator_wait([completion]) - - return HandleCommandResult() + #return result + return HandleCommandResult(stdout=completion.result) def _add_stateless_svc(self, svc_type, spec): completion = self.add_stateless_service(svc_type, spec) @@ -408,4 +408,3 @@ class OrchestratorCli(orchestrator.OrchestratorClientMixin, MgrModule): return self._status() else: raise NotImplementedError() - -- 2.39.5