]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: fix typos
authorKefu Chai <kchai@redhat.com>
Tue, 18 Sep 2018 03:30:51 +0000 (11:30 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Sep 2018 04:43:33 +0000 (12:43 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/dashboard/controllers/__init__.py
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts
src/pybind/mgr/dashboard/rest_client.py
src/pybind/mgr/dashboard/services/access_control.py
src/pybind/mgr/dashboard/tools.py
src/pybind/mgr/insights/health.py
src/pybind/mgr/insights/module.py
src/pybind/mgr/insights/tests/test_health.py
src/pybind/mgr/restful/api/config.py
src/pybind/mgr/restful/module.py

index caa696a4ad64a241c4067dc98526a0ac2cf5d3cc..ed9c7c032f1091922c7d0c2c961ba31c0be5bd5f 100644 (file)
@@ -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.
index 7a985f61dc9e6f1d8dd67cb1a70046b53b7aca39..c1947a10109e1435e9fde09f0160d81ceab7f616 100644 (file)
@@ -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();
   });
index 581fa1f531fd69b4468c098d0d9ac96a2002f715..b287086f9863096dad968ae7401d400d4e4a07a3 100644 (file)
@@ -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
 
index 61a4d380e1ac366b27ea8a89af0ed32e066deebf..60c058aca84063f26f7f050b1c9eef3e85c151b8 100644 (file)
@@ -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
     {
index aafed807d7c83c97fb844396106773ccf9a0a893..c65b654b5a12f433e4edb4dc5c9b959aa3f834aa 100644 (file)
@@ -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.
 
index 866c4b69f440a3cf67af81716adde67b3eafab88..5235ca849c1a23329f5a1859ced048d57d338e25 100644 (file)
@@ -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):
index eb6e7e2f5a5a2e3ff13d44fe3d47edcdbcd62ef5..871b3b18493dae558b8ab46db3b867efaa1775d9 100644 (file)
@@ -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.
         """
index 41c3a5c65c52fd0e0ea3c43fe923273ed4e398c2..9b34786dcc0687634aeb8b790fedb3a55d8d06ea 100644 (file)
@@ -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()
index 4176c003c4aec1d1816dba677b85af880f3ef464..f19634da5c071a3d522089ed5b95e1a725233148 100644 (file)
@@ -24,7 +24,7 @@ class ConfigOsd(RestController):
     @auth
     def patch(self, **kwargs):
         """
-        Modify OSD configration options
+        Modify OSD configuration options
         """
         args = request.json
 
index 28313a309b5a0dae2cbc62218d560800be243ab3..a3fcb71c87a96ce7064fb0a179e9ef212f138e7d 100644 (file)
@@ -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')