From: Patrick Donnelly Date: Mon, 12 Apr 2021 17:33:57 +0000 (-0700) Subject: pybind/mgr/devicehealth: fix command name X-Git-Tag: v17.1.0~2243^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=05c0ddbb011a3e7d5ca998331b82720acc05c9cf;p=ceph.git pybind/mgr/devicehealth: fix command name Regression: 61bb1691f453a137cf4d50467af233fd3db7f897 Fixes: https://tracker.ceph.com/issues/50304 Signed-off-by: Patrick Donnelly --- diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index 4b38cb401576..ed752fe15b0c 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]: '''