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: v20.0.0~1615^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5f3f6254077987ecc3cac09195cd46dc21e18ae5;p=ceph.git mgr: excute cmd 'ceph orch apply osd' returned without error info Fixes: https://tracker.ceph.com/issues/66574 Signed-off-by: teng jie --- diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 4969e1f5eb78..8de0df19e800 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -1227,11 +1227,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: