]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Prevent KeyError when requesting always_on_modules
authorVolker Theile <vtheile@suse.com>
Tue, 17 Sep 2019 10:39:22 +0000 (12:39 +0200)
committerVolker Theile <vtheile@suse.com>
Fri, 20 Sep 2019 09:45:47 +0000 (11:45 +0200)
commit1ee85da0b28978f7fd52aa2d24b942c38ca274d7
treeb689f7db3b6142234a3250633dd5206a5f831bf2
parentb2ca51a8bff537e6614aad6c24e3a4696ccb0d46
mgr/dashboard: Prevent KeyError when requesting always_on_modules

`ceph_release` is not necessarily a valid key for `mgr_map['always_on_modules']`

This PR is inspired by https://github.com/ceph/ceph/pull/30421.

Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/controllers/mgr_modules.py