]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/mirroring: modifies the cli command type to read 65265/head
authorUtkarsh Bhatt <utkarsh.bhatt@canonical.com>
Wed, 27 Aug 2025 11:58:52 +0000 (17:28 +0530)
committerUtkarsh Bhatt <utkarsh.bhatt@canonical.com>
Tue, 23 Sep 2025 11:00:39 +0000 (16:30 +0530)
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 <utkarsh.bhatt@canonical.com>
src/pybind/mgr/mirroring/module.py

index 67f0942147e8845aa0896267b115bb7d659289d6..5ba7dde5587f7f37d90a04e601b1fec526fd437f 100644 (file)
@@ -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"""