]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: gather facts should only be fetched when orch backend is cephadm
authorAvan Thakkar <athakkar@redhat.com>
Wed, 20 Oct 2021 14:07:26 +0000 (19:37 +0530)
committerAlfonso Martínez <almartin@redhat.com>
Wed, 3 Nov 2021 11:59:46 +0000 (12:59 +0100)
commit8f2cf7318da1bd3e2db0eae575b73774f31b16fe
tree10b48b8f2a9bea9f09042e4229bc7fe650c8a5fb
parentbdeca0e086129a4a56731cf452d273a8aa507cee
mgr/dashboard: gather facts should only be fetched when orch backend is cephadm

Fixes: https://tracker.ceph.com/issues/52981
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Gather facts in UI should only be fetched if there is orch available and
get_facts feature is available for that orch backend.

(cherry picked from commit 78b8af2bda39dea8aa46a42e0cea4c5fd53c1d42)
src/pybind/mgr/dashboard/controllers/host.py
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/models/orchestrator.enum.ts
src/pybind/mgr/dashboard/tests/test_host.py