From d3e09b6e04c6a9990807ac1b6ff340a8004fa8f9 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Wed, 25 Nov 2020 10:57:45 +0100 Subject: [PATCH] mgr: Fix various typos Signed-off-by: Volker Theile --- src/pybind/mgr/cephadm/serve.py | 2 +- src/pybind/mgr/cephadm/services/cephadmservice.py | 2 +- src/pybind/mgr/devicehealth/module.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index 1e91a33abb4..502ef8f48dd 100644 --- a/src/pybind/mgr/cephadm/serve.py +++ b/src/pybind/mgr/cephadm/serve.py @@ -370,7 +370,7 @@ class CephadmServe: if self.mgr.warn_on_stray_daemons and daemon_detail: self.mgr.health_checks['CEPHADM_STRAY_DAEMON'] = { 'severity': 'warning', - 'summary': '%d stray daemons(s) not managed by cephadm' % ( + 'summary': '%d stray daemon(s) not managed by cephadm' % ( len(daemon_detail)), 'count': len(daemon_detail), 'detail': daemon_detail, diff --git a/src/pybind/mgr/cephadm/services/cephadmservice.py b/src/pybind/mgr/cephadm/services/cephadmservice.py index c779ff34f18..ac7fd6efbed 100644 --- a/src/pybind/mgr/cephadm/services/cephadmservice.py +++ b/src/pybind/mgr/cephadm/services/cephadmservice.py @@ -614,7 +614,7 @@ class RgwService(CephService): def create_realm_zonegroup_zone(self, spec: RGWSpec, rgw_id: str) -> None: if utils.get_cluster_health(self.mgr) != 'HEALTH_OK': - raise OrchestratorError('Health not ok, will try agin when health ok') + raise OrchestratorError('Health not ok, will try again when health ok') # get keyring needed to run rados commands and strip out just the keyring keyring = self.get_keyring(rgw_id).split('key = ', 1)[1].rstrip() diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index 6ce89127493..52d0e416617 100644 --- a/src/pybind/mgr/devicehealth/module.py +++ b/src/pybind/mgr/devicehealth/module.py @@ -17,7 +17,7 @@ DEVICE_HEALTH_IN_USE = 'DEVICE_HEALTH_IN_USE' DEVICE_HEALTH_TOOMANY = 'DEVICE_HEALTH_TOOMANY' HEALTH_MESSAGES = { DEVICE_HEALTH: '%d device(s) expected to fail soon', - DEVICE_HEALTH_IN_USE: '%d daemons(s) expected to fail soon and still contain data', + DEVICE_HEALTH_IN_USE: '%d daemon(s) expected to fail soon and still contain data', DEVICE_HEALTH_TOOMANY: 'Too many daemons are expected to fail soon', }