From 897757162088a6b7b641d0dcae8e1480beb5725d Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Tue, 28 Nov 2023 05:58:15 +0530 Subject: [PATCH] pybind/mgr/mirroring: drop mon_host from peer_list Drop mon_host from peer_list to make it similar to rbd_mirror peer_list. Fixes: https://tracker.ceph.com/issues/63614 Signed-off-by: Jos Collin (cherry picked from commit 686ef1d4d3e09a364396ec668ac97b08844b166b) --- src/pybind/mgr/mirroring/fs/snapshot_mirror.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pybind/mgr/mirroring/fs/snapshot_mirror.py b/src/pybind/mgr/mirroring/fs/snapshot_mirror.py index 6fa8d0c4c5338..89da37920312d 100644 --- a/src/pybind/mgr/mirroring/fs/snapshot_mirror.py +++ b/src/pybind/mgr/mirroring/fs/snapshot_mirror.py @@ -558,14 +558,11 @@ class FSSnapshotMirror: peers = self.get_filesystem_peers(filesystem) peer_res = {} for peer_uuid, rem in peers.items(): - conf = self.config_get(FSSnapshotMirror.peer_config_key(filesystem, peer_uuid)) remote = rem['remote'] peer_res[peer_uuid] = {'client_name': remote['client_name'], 'site_name': remote['cluster_name'], 'fs_name': remote['fs_name'] } - if 'mon_host' in conf: - peer_res[peer_uuid]['mon_host'] = conf['mon_host'] return 0, json.dumps(peer_res), '' except MirrorException as me: return me.args[0], '', me.args[1] -- 2.39.5