]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr: excute cmd 'ceph orch apply osd' returned without error info
authorroot <root@localhost.localdomain>
Thu, 20 Jun 2024 10:27:38 +0000 (06:27 -0400)
committerAdam King <adking@redhat.com>
Mon, 15 Jul 2024 22:19:00 +0000 (18:19 -0400)
Fixes: https://tracker.ceph.com/issues/66574
Signed-off-by: teng jie <tengjie5@asiainfo.com>
(cherry picked from commit 5f3f6254077987ecc3cac09195cd46dc21e18ae5)

src/pybind/mgr/orchestrator/module.py

index 4c08ace4dbdaa7c2d76db66f5f034a6fe8f5558c..a664bd7342c603c14905caf322b39c25d5d32466 100644 (file)
@@ -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: