]> 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>
Mon, 1 Mar 2021 15:50:42 +0000 (16:50 +0100)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/selftest/module.py

index dd0c381671dfc3aac0294f2404fbc5e34a749365..65d6181054c2693f628cfecf6fa9c082fd2ab7dc 100644 (file)
@@ -440,12 +440,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)