From: Sebastian Wagner Date: Tue, 9 Feb 2021 10:58:31 +0000 (+0100) Subject: mgr/selftest: adapt to now orch interface X-Git-Tag: v17.1.0~2786^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=828992d7fece771c207e7de01780db541165ec61;p=ceph-ci.git mgr/selftest: adapt to now orch interface Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/selftest/module.py b/src/pybind/mgr/selftest/module.py index dd0c381671d..65d6181054c 100644 --- a/src/pybind/mgr/selftest/module.py +++ b/src/pybind/mgr/selftest/module.py @@ -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)