From: Utkarsh Bhatt Date: Wed, 27 Aug 2025 11:58:52 +0000 (+0530) Subject: pybind/mgr/mirroring: modifies the cli command type to read X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F65265%2Fhead;p=ceph.git pybind/mgr/mirroring: modifies the cli command type to read The command fs snapshot mirror ls is used to present state data to client. This does not require Write semantics. Signed-off-by: Utkarsh Bhatt --- diff --git a/src/pybind/mgr/mirroring/module.py b/src/pybind/mgr/mirroring/module.py index 67f0942147e8..5ba7dde5587f 100644 --- a/src/pybind/mgr/mirroring/module.py +++ b/src/pybind/mgr/mirroring/module.py @@ -84,7 +84,7 @@ class Module(MgrModule): """Remove a snapshot mirrored directory""" return self.fs_snapshot_mirror.remove_dir(fs_name, path) - @CLIWriteCommand('fs snapshot mirror ls') + @CLIReadCommand('fs snapshot mirror ls') def snapshot_mirror_ls(self, fs_name: str): """List the snapshot mirrored directories"""