]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/dashboard: fetch image's mirror mode 63149/head
authorRamana Raja <rraja@redhat.com>
Tue, 13 May 2025 16:37:52 +0000 (12:37 -0400)
committerRamana Raja <rraja@redhat.com>
Mon, 16 Jun 2025 23:14:36 +0000 (19:14 -0400)
commit0a705115337d11231c21209c056c6c588c1bc8eb
tree7d4a7b04f604dc0ebfbd2435677870f200b2b072
parentb3f1d2d183d330d80d4e539e3a038f30586a2de0
pybind/mgr/dashboard: fetch image's mirror mode

... only if the image is not disabled for mirroring.

If the image is disabled for mirroring, fetching the image's
mirroring mode is invalid. So validate that the image is not disabled
for mirroring before fetching the mirroring mode.

Signed-off-by: Ramana Raja <rraja@redhat.com>
src/pybind/mgr/dashboard/controllers/rbd.py
src/pybind/mgr/dashboard/controllers/rbd_mirroring.py
src/pybind/mgr/dashboard/services/rbd.py