From: Patrick Donnelly Date: Mon, 12 Apr 2021 17:33:57 +0000 (-0700) Subject: pybind/mgr/devicehealth: fix command name X-Git-Tag: v16.2.5~118^2~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0ea5c8b8250ecff40c5dc6ce6f4e7035ffd4d331;p=ceph.git pybind/mgr/devicehealth: fix command name Regression: 61bb1691f453a137cf4d50467af233fd3db7f897 Fixes: https://tracker.ceph.com/issues/50304 Signed-off-by: Patrick Donnelly (cherry picked from commit 05c0ddbb011a3e7d5ca998331b82720acc05c9cf) --- diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index 54b1f5b0dfc1..b40cba4f08c5 100644 --- a/src/pybind/mgr/devicehealth/module.py +++ b/src/pybind/mgr/devicehealth/module.py @@ -165,7 +165,7 @@ class Module(MgrModule): (daemon_type, daemon_id) = who.split('.') return self.scrape_daemon(daemon_type, daemon_id) - @CLICommand('device scrape-daemon-health-metrics', + @CLICommand('device scrape-health-metrics', perm='r') def do_scrape_health_metrics(self, devid: Optional[str] = None) -> Tuple[int, str, str]: '''