From 828992d7fece771c207e7de01780db541165ec61 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 9 Feb 2021 11:58:31 +0100 Subject: [PATCH] mgr/selftest: adapt to now orch interface Signed-off-by: Sebastian Wagner --- src/pybind/mgr/selftest/module.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) -- 2.39.5