]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/pybind/mgr/mirroring/fs/snapshot_mirror.py: do not assume a cephfs-mirror daemon... 42226/head
authorSébastien Han <seb@redhat.com>
Thu, 1 Jul 2021 15:23:57 +0000 (17:23 +0200)
committerCory Snyder <csnyder@iland.com>
Wed, 7 Jul 2021 17:30:42 +0000 (13:30 -0400)
commitad0e2b53540e3321b70970f33f51b04c69914dbc
tree468e815c485d1f59efa13107d15514a8864f75ff
parent2da4f0a00259e70842bd8c8408e9267833b68856
src/pybind/mgr/mirroring/fs/snapshot_mirror.py: do not assume a cephfs-mirror daemon is always running

We should not assume a daemon is runnning. If the daemon is not running
we get the default value of None. So let's skip the status if no daemon
is running yet.

Fixes: https://tracker.ceph.com/issues/51476
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit dd45ec499c009a4d0487b22f59f9360fb4f55c34)
src/pybind/mgr/mirroring/fs/snapshot_mirror.py