]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/selftest: adapt to now orch interface
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 9 Feb 2021 10:58:31 +0000 (11:58 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 9 Mar 2021 14:29:32 +0000 (15:29 +0100)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit 828992d7fece771c207e7de01780db541165ec61)

src/pybind/mgr/selftest/module.py

index d63e4cc24ab69c84721fb9f3e149baa82c9d955b..c459dc31de74aa67d537f8be35d3bacfabec1ba0 100644 (file)
@@ -430,12 +430,10 @@ class Module(MgrModule):
     def remote_from_orchestrator_cli_self_test(self, what):
         import orchestrator
         if what == 'OrchestratorError':
-            c = orchestrator.TrivialReadCompletion(result=None)
-            c.fail(orchestrator.OrchestratorError('hello, world'))
+            c = orchestrator.OrchResult(result=None, exception=orchestrator.OrchestratorError('hello, world'))
             return c
         elif what == "ZeroDivisionError":
-            c = orchestrator.TrivialReadCompletion(result=None)
-            c.fail(ZeroDivisionError('hello, world'))
+            c = orchestrator.OrchResult(result=None, exception=ZeroDivisionError('hello, world'))
             return c
         assert False, repr(what)