From ed7937f72aecb790e7c4361ad1cd5fa24be97ca6 Mon Sep 17 00:00:00 2001 From: Paul Cuzner Date: Thu, 4 Feb 2021 08:57:16 +1300 Subject: [PATCH] mgr/cephadm:toleration fix for API consistency in dashboard The function signatire change to "available" needed a patch to the dashboard>orchestratior interface. This patch just tolerates the change - if or how to consume the additional data from "available" is yet to be deternined. Signed-off-by: Paul Cuzner (cherry picked from commit e36e1d20acf4534133bcc14dab62cc5465667a62) --- src/pybind/mgr/dashboard/services/orchestrator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/services/orchestrator.py b/src/pybind/mgr/dashboard/services/orchestrator.py index 291c39d91f1..3d25091e299 100644 --- a/src/pybind/mgr/dashboard/services/orchestrator.py +++ b/src/pybind/mgr/dashboard/services/orchestrator.py @@ -23,7 +23,7 @@ class OrchestratorAPI(OrchestratorClientMixin): def status(self): try: - status, message = super().available() + status, message, _module_details = super().available() logger.info("is orchestrator available: %s, %s", status, message) return dict(available=status, message=message) except (RuntimeError, OrchestratorError, ImportError) as e: -- 2.47.3