]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm/iscsi: simplify the dashboard check
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 23 Jul 2021 15:14:25 +0000 (11:14 -0400)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 10 Aug 2021 14:32:14 +0000 (16:32 +0200)
commit9c5a51ff3410e2cb83677200a22711c6ce2e58b3
tree2d1ea88520b40ece1dd20a1f3033f6d5461dddd8
parentd5693e689037c0fa0154fcf93040dbe5dba7477a
mgr/cephadm/iscsi: simplify the dashboard check

We don't need to run an extra command (mgr module ls) to obtain the mgr
modules list since we already have this information in the mgr_map.
This workflow is already done for the monitoring stack or for configuring
the iscsi integration within the dashboard (during creation) via the
config_dashboard method.

The mgr_map is mocked in the tests with the dashboard module enabled so we
don't need _mon_command_mock_mgr_module_ls anymore.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit a6808efca4535f10c5639ee0a6a517c110da3f44)
src/pybind/mgr/cephadm/services/iscsi.py
src/pybind/mgr/cephadm/tests/test_cephadm.py