From 8c5b962b7283026504a094cdf4a505efa863113a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Jun 2024 06:27:38 -0400 Subject: [PATCH] mgr: excute cmd 'ceph orch apply osd' returned without error info Fixes: https://tracker.ceph.com/issues/66574 Signed-off-by: teng jie (cherry picked from commit 5f3f6254077987ecc3cac09195cd46dc21e18ae5) --- src/pybind/mgr/orchestrator/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 4c08ace4dbd..a664bd7342c 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -1220,11 +1220,11 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule, """ if inbuf and all_available_devices: - return HandleCommandResult(-errno.EINVAL, '-i infile and --all-available-devices are mutually exclusive') + return HandleCommandResult(-errno.EINVAL, stderr='-i infile and --all-available-devices are mutually exclusive') if not inbuf and not all_available_devices: # one parameter must be present - return HandleCommandResult(-errno.EINVAL, '--all-available-devices is required') + return HandleCommandResult(-errno.EINVAL, stderr='--all-available-devices is required') if inbuf: if unmanaged is not None: -- 2.39.5