From 151ed79bb3d9c83f4a15bac94ef10a8c30a71522 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatt Date: Wed, 27 Aug 2025 17:28:52 +0530 Subject: [PATCH] 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 --- src/pybind/mgr/mirroring/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/mirroring/module.py b/src/pybind/mgr/mirroring/module.py index 67f0942147e88..5ba7dde5587f7 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""" -- 2.39.5