]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: fix typos
authorKefu Chai <kchai@redhat.com>
Tue, 18 Sep 2018 03:22:14 +0000 (11:22 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Sep 2018 04:41:42 +0000 (12:41 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph-volume/ceph_volume/api/lvm.py
src/ceph-volume/ceph_volume/decorators.py
src/ceph-volume/ceph_volume/devices/lvm/activate.py
src/ceph-volume/ceph_volume/devices/simple/scan.py
src/ceph-volume/ceph_volume/util/disk.py
src/ceph-volume/ceph_volume/util/encryption.py
src/ceph-volume/ceph_volume/util/prepare.py

index 8c09f09ee176491049e9f760966e1ed5b196fb36..4e7ab446f12b743c36ee3791895e39901c883f0d 100644 (file)
@@ -40,7 +40,7 @@ def _output_parser(output, fields):
         if not line:
             continue
 
-        # spliting on ';' because that is what the lvm call uses as
+        # splitting on ';' because that is what the lvm call uses as
         # '--separator'
         output_items = [i.strip() for i in line.split(';')]
         # map the output to the fiels
@@ -902,7 +902,7 @@ class PVolumes(list):
                 if matches:
                     tag_filtered.append(pvolume)
             # return the tag_filtered pvolumes here, the `filtered` list is no
-            # longer useable
+            # longer usable
             return tag_filtered
 
         return filtered
index d0be938172f99d912a6f71870bd1f46ae5e211e8..f6777281795b26a8622f21d9c54054150363d48e 100644 (file)
@@ -41,7 +41,7 @@ def catches(catch=None, handler=None, exit=True):
             some_call()
             print "Success!"
 
-    If multiple exceptions need to be catched they need to be provided as a
+    If multiple exceptions need to be caught they need to be provided as a
     tuple::
 
         @catches((TypeError, AttributeError))
index 782a6d16933af3bc32d0a26dde293c58518d7fe2..6faebaec38f6ed022218634a55af13bab5af4e7e 100644 (file)
@@ -31,7 +31,7 @@ def activate_filestore(lvs, no_systemd=False):
     # blow up with a KeyError if this doesn't exist
     osd_fsid = osd_lv.tags['ceph.osd_fsid']
     if not osd_journal_lv:
-        # must be a disk partition, by quering blkid by the uuid we are ensuring that the
+        # must be a disk partition, by querying blkid by the uuid we are ensuring that the
         # device path is always correct
         journal_uuid = osd_lv.tags['ceph.journal_uuid']
         osd_journal = disk.get_device_from_partuuid(journal_uuid)
index 1ef257c190faba3533b805c2d6e25de01337bf24..9dabbe9ba77d77cf4482fb635585e917384e3114 100644 (file)
@@ -269,7 +269,7 @@ class Scan(object):
                 )
             )
             terminal.success(
-                'To take over managment of this scanned OSD, and disable ceph-disk and udev, run:'
+                'To take over management of this scanned OSD, and disable ceph-disk and udev, run:'
             )
             terminal.success('    ceph-volume simple activate %s %s' % (osd_id, osd_fsid))
 
index 2cb6f7bc656ef8c259df87448053307344452652..88f1045a25b6aa14c8cbdf40d268bd759d6c3ab2 100644 (file)
@@ -438,7 +438,7 @@ class Size(object):
 
         for k, v in kw.items():
             self._convert(v, k)
-            # only pursue the first occurence
+            # only pursue the first occurrence
             break
 
     def _convert(self, size, unit):
index cc594a07e8304793f54d34b9043eed5aedcb9365..28036aee98ae483bb45d87517006b25206469a7a 100644 (file)
@@ -148,7 +148,7 @@ def write_lockbox_keyring(osd_id, osd_fsid, secret):
     For filestore: The path for the OSD would exist at this point even if no
     OSD data device is mounted, so the keyring is written to fetch the key, and
     then the data device is mounted on that directory, making the keyring
-    "dissapear".
+    "disappear".
     """
     if os.path.exists('/var/lib/ceph/osd/%s-%s/lockbox.keyring' % (conf.cluster, osd_id)):
         return
index 1c1d45318627ecf093323189c5f50c7aa17861e9..62fb642cf7af9e6bca18eaac7cf1895bb9ffe359 100644 (file)
@@ -346,7 +346,7 @@ def osd_mkfs_bluestore(osd_id, fsid, keyring=None, wal=False, db=False):
                    --setuser ceph --setgroup ceph
 
     In some cases it is required to use the keyring, when it is passed in as
-    a keywork argument it is used as part of the ceph-osd command
+    a keyword argument it is used as part of the ceph-osd command
     """
     path = '/var/lib/ceph/osd/%s-%s/' % (conf.cluster, osd_id)
     monmap = os.path.join(path, 'activate.monmap')