From 05c0ddbb011a3e7d5ca998331b82720acc05c9cf Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 12 Apr 2021 10:33:57 -0700 Subject: [PATCH] pybind/mgr/devicehealth: fix command name Regression: 61bb1691f453a137cf4d50467af233fd3db7f897 Fixes: https://tracker.ceph.com/issues/50304 Signed-off-by: Patrick Donnelly --- src/pybind/mgr/devicehealth/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index 4b38cb40157..ed752fe15b0 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]: ''' -- 2.39.5