]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: excute cmd 'ceph orch apply osd' returned without error info 58154/head
authorroot <root@localhost.localdomain>
Thu, 20 Jun 2024 10:27:38 +0000 (06:27 -0400)
committerroot <root@localhost.localdomain>
Thu, 20 Jun 2024 10:27:38 +0000 (06:27 -0400)
Fixes: https://tracker.ceph.com/issues/66574
Signed-off-by: teng jie <tengjie5@asiainfo.com>
src/pybind/mgr/orchestrator/module.py

index 4969e1f5eb78f50ac8b32d910723f49f982f0d64..8de0df19e80010f5a34be198f427efd136e7bfab 100644 (file)
@@ -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: