From 67157ec7fddb3002a44209a8650c86d60030d39a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 18 Sep 2018 11:30:51 +0800 Subject: [PATCH] pybind/mgr: fix typos Signed-off-by: Kefu Chai --- src/pybind/mgr/dashboard/controllers/__init__.py | 2 +- .../src/app/ceph/block/rbd-list/rbd-list.component.spec.ts | 2 +- src/pybind/mgr/dashboard/rest_client.py | 4 ++-- src/pybind/mgr/dashboard/services/access_control.py | 2 +- src/pybind/mgr/dashboard/tools.py | 2 +- src/pybind/mgr/insights/health.py | 2 +- src/pybind/mgr/insights/module.py | 4 ++-- src/pybind/mgr/insights/tests/test_health.py | 2 +- src/pybind/mgr/restful/api/config.py | 2 +- src/pybind/mgr/restful/module.py | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/pybind/mgr/dashboard/controllers/__init__.py b/src/pybind/mgr/dashboard/controllers/__init__.py index caa696a4ad64a..ed9c7c032f109 100644 --- a/src/pybind/mgr/dashboard/controllers/__init__.py +++ b/src/pybind/mgr/dashboard/controllers/__init__.py @@ -587,7 +587,7 @@ class RESTController(BaseController): """ # resource id parameter for using in get, set, and delete methods - # should be overriden by subclasses. + # should be overridden by subclasses. # to specify a composite id (two parameters) use '/'. e.g., "param1/param2". # If subclasses don't override this property we try to infer the structure # of the resourse ID. diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts index 7a985f61dc9e6..c1947a10109e1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts @@ -60,7 +60,7 @@ describe('RbdListComponent', () => { summaryService = TestBed.get(SummaryService); rbdService = TestBed.get(RbdService); - // this is needed because summaryService isn't being reseted after each test. + // this is needed because summaryService isn't being reset after each test. summaryService['summaryDataSource'] = new BehaviorSubject(null); summaryService['summaryData$'] = summaryService['summaryDataSource'].asObservable(); }); diff --git a/src/pybind/mgr/dashboard/rest_client.py b/src/pybind/mgr/dashboard/rest_client.py index 581fa1f531fd6..b287086f98630 100644 --- a/src/pybind/mgr/dashboard/rest_client.py +++ b/src/pybind/mgr/dashboard/rest_client.py @@ -139,7 +139,7 @@ class _ResponseValidator(object): In the above example the structure will validate against any response that contains a key named "return" in the root of the response dictionary and its value is a dictionary that must contain a key named - "key1" that is an array, a key named "key2", and optionaly a key named + "key1" that is an array, a key named "key2", and optionally a key named "key3" that is a dictionary that contains a key named "subkey". Example 7: @@ -312,7 +312,7 @@ class _Request(object): resp = self.rest_client.do_request(method, self._gen_path(), params, data, raw_content) if raw_content and self.resp_structure: - raise Exception("Cannot validate reponse in raw format") + raise Exception("Cannot validate response in raw format") _ResponseValidator.validate(self.resp_structure, resp) return resp diff --git a/src/pybind/mgr/dashboard/services/access_control.py b/src/pybind/mgr/dashboard/services/access_control.py index 61a4d380e1ac3..60c058aca8406 100644 --- a/src/pybind/mgr/dashboard/services/access_control.py +++ b/src/pybind/mgr/dashboard/services/access_control.py @@ -330,7 +330,7 @@ def load_access_control_db(): ACCESS_CTRL_DB = AccessControlDB.load() -# CLI dashboard access controll scope commands +# CLI dashboard access control scope commands ACCESS_CONTROL_COMMANDS = [ # for backwards compatibility { diff --git a/src/pybind/mgr/dashboard/tools.py b/src/pybind/mgr/dashboard/tools.py index aafed807d7c83..c65b654b5a12f 100644 --- a/src/pybind/mgr/dashboard/tools.py +++ b/src/pybind/mgr/dashboard/tools.py @@ -335,7 +335,7 @@ class NotificationQueue(threading.Thread): def deregister(cls, func, n_types=None): """Removes the listener function from this notification queue - If the second parameter `n_types` is ommitted, the function is removed + If the second parameter `n_types` is omitted, the function is removed from all event types, otherwise the function is removed only for the specified event types. diff --git a/src/pybind/mgr/insights/health.py b/src/pybind/mgr/insights/health.py index 866c4b69f440a..5235ca849c1a2 100644 --- a/src/pybind/mgr/insights/health.py +++ b/src/pybind/mgr/insights/health.py @@ -113,7 +113,7 @@ class HealthHistorySlot(object): return dict(checks = self._checks.checks()) def key(self): - """Identifer in the persist store""" + """Identifier in the persist store""" return self._key(self._slot) def expired(self): diff --git a/src/pybind/mgr/insights/module.py b/src/pybind/mgr/insights/module.py index eb6e7e2f5a5a2..871b3b18493da 100644 --- a/src/pybind/mgr/insights/module.py +++ b/src/pybind/mgr/insights/module.py @@ -21,7 +21,7 @@ class Module(MgrModule): COMMANDS = [ { "cmd": "insights", - "desc": "Retreive insights report", + "desc": "Retrieve insights report", "perm": "r", "poll": "false", }, @@ -158,7 +158,7 @@ class Module(MgrModule): """ Return the components of a Ceph version string. - This returns nothing when the verison string cannot be parsed into its + This returns nothing when the version string cannot be parsed into its constituent components, such as when Ceph has been built with ENABLE_GIT_VERSION=OFF. """ diff --git a/src/pybind/mgr/insights/tests/test_health.py b/src/pybind/mgr/insights/tests/test_health.py index 41c3a5c65c52f..9b34786dcc068 100644 --- a/src/pybind/mgr/insights/tests/test_health.py +++ b/src/pybind/mgr/insights/tests/test_health.py @@ -175,7 +175,7 @@ class HealthChecksTest(unittest.TestCase): class HealthHistoryTest(unittest.TestCase): def _now(self): # return some time truncated at 30 minutes past the hour. this lets us - # fiddle with time offsets without worrying about accidentically landing + # fiddle with time offsets without worrying about accidentally landing # on exactly the top of the hour which is the edge of a time slot for # tracking health history. dt = datetime.datetime.utcnow() diff --git a/src/pybind/mgr/restful/api/config.py b/src/pybind/mgr/restful/api/config.py index 4176c003c4aec..f19634da5c071 100644 --- a/src/pybind/mgr/restful/api/config.py +++ b/src/pybind/mgr/restful/api/config.py @@ -24,7 +24,7 @@ class ConfigOsd(RestController): @auth def patch(self, **kwargs): """ - Modify OSD configration options + Modify OSD configuration options """ args = request.json diff --git a/src/pybind/mgr/restful/module.py b/src/pybind/mgr/restful/module.py index 28313a309b5a0..a3fcb71c87a96 100644 --- a/src/pybind/mgr/restful/module.py +++ b/src/pybind/mgr/restful/module.py @@ -595,7 +595,7 @@ class Module(MgrModule): def run_command(self, command): - # tag with 'seq' so that we can ingore these in notify function + # tag with 'seq' so that we can ignore these in notify function result = CommandResult('seq') self.send_command(result, 'mon', '', json.dumps(command), 'seq') -- 2.39.5