]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/orchestrator: don't have _select_orchestrator raise exceptions
authorJeff Layton <jlayton@redhat.com>
Tue, 12 Feb 2019 12:16:06 +0000 (07:16 -0500)
committerJeff Layton <jlayton@redhat.com>
Tue, 12 Feb 2019 13:07:08 +0000 (08:07 -0500)
commit98b8f7922a23ea8bf9532e7ad2218591060c4c9a
tree3c0a7c2cad7ff1dfb6c16f94ce5d9893fbabd877
parent0e9a0211cc87000d236e4936f3a05deb6dd1b68a
mgr/orchestrator: don't have _select_orchestrator raise exceptions

This is problematic as this usually gets invoked via the Mgr remote
method, which will clobber any exception with a RuntimeError.

Instead, just have it return None if one isn't configured, and have the
callers raise the exception if necessary.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/pybind/mgr/orchestrator.py
src/pybind/mgr/orchestrator_cli/module.py