From: root Date: Thu, 20 Jun 2024 10:27:38 +0000 (-0400) Subject: mgr: excute cmd 'ceph orch apply osd' returned without error info X-Git-Tag: testing/wip-xiubli-testing-20240802.055215-squid~35^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8c5b962b7283026504a094cdf4a505efa863113a;p=ceph-ci.git 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) --- 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: