From ad6cdb6e1030834e11f1a6d82ea8d13c5b5cdade Mon Sep 17 00:00:00 2001 From: daiki kato Date: Wed, 23 Mar 2016 15:53:03 +0900 Subject: [PATCH] Fix typos This patch fixes several typos. TrivialFix Change-Id: I169e15a0fdfbbcbeb1f87e3022b01fbb9353df01 --- doc/source/devref/cephfs_native_driver.rst | 2 +- manila/api/common.py | 2 +- manila/cmd/manage.py | 2 +- manila/common/config.py | 2 +- manila/network/linux/ip_lib.py | 2 +- manila/share/driver.py | 2 +- manila/share/drivers/cephfs/cephfs_native.py | 2 +- manila/share/drivers/glusterfs/common.py | 4 ++-- manila/share/drivers/ibm/ganesha_utils.py | 2 +- manila/tests/db/migrations/alembic/test_migration.py | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/source/devref/cephfs_native_driver.rst b/doc/source/devref/cephfs_native_driver.rst index 8092641495..625ed2fb81 100644 --- a/doc/source/devref/cephfs_native_driver.rst +++ b/doc/source/devref/cephfs_native_driver.rst @@ -16,7 +16,7 @@ http://docs.ceph.com/docs/master/cephfs/). If you choose to use the kernel client rather than the FUSE client, the share size limits set in Manila may not be obeyed. -Prerequisities +Prerequisites -------------- - A Ceph cluster with a filesystem configured ( diff --git a/manila/api/common.py b/manila/api/common.py index 516ce761d5..93988a6af7 100644 --- a/manila/api/common.py +++ b/manila/api/common.py @@ -265,7 +265,7 @@ class ViewBuilder(object): return parse.urlunsplit(url_parts) def update_versioned_resource_dict(self, request, resource_dict, resource): - """Updates teh given resource dict for the given request version. + """Updates the given resource dict for the given request version. This method calls every method, that is applicable to the request version, in _detail_version_modifiers. diff --git a/manila/cmd/manage.py b/manila/cmd/manage.py index c9a274608d..df829f86b6 100755 --- a/manila/cmd/manage.py +++ b/manila/cmd/manage.py @@ -167,7 +167,7 @@ class ShellCommands(object): @args('--path', required=True, help='Script path') def script(self, path): - """Runs the script from the specifed path with flags set properly. + """Runs the script from the specified path with flags set properly. arguments: path """ diff --git a/manila/common/config.py b/manila/common/config.py index 1d79ffa179..231595e82a 100644 --- a/manila/common/config.py +++ b/manila/common/config.py @@ -170,7 +170,7 @@ CONF.register_opts(global_opts) def verify_share_protocols(): - """Perfom verification of 'enabled_share_protocols'.""" + """Perform verification of 'enabled_share_protocols'.""" msg = None supported_protocols = constants.SUPPORTED_SHARE_PROTOCOLS data = dict(supported=', '.join(supported_protocols)) diff --git a/manila/network/linux/ip_lib.py b/manila/network/linux/ip_lib.py index a33d27f60d..479a0bae45 100644 --- a/manila/network/linux/ip_lib.py +++ b/manila/network/linux/ip_lib.py @@ -415,7 +415,7 @@ class IpRouteCommand(IpDeviceCommandBase): return routes def delete_net_route(self, cidr, device): - """Deletes a route according to suplied CIDR and interface device. + """Deletes a route according to supplied CIDR and interface device. :param cidr: The network CIDR to be removed. :param device: The network interface device to be removed. diff --git a/manila/share/driver.py b/manila/share/driver.py index 34204a1122..492128578c 100644 --- a/manila/share/driver.py +++ b/manila/share/driver.py @@ -980,7 +980,7 @@ class ShareDriver(object): member_update_list - a list of dictionaries containing for every member of the cgsnapshot. Each dict should contains values to be - updated for teh CGSnapshotMember in the database. This list may be + updated for the CGSnapshotMember in the database. This list may be empty or None. """ raise NotImplementedError() diff --git a/manila/share/drivers/cephfs/cephfs_native.py b/manila/share/drivers/cephfs/cephfs_native.py index fee6ed7245..5eb6f70155 100644 --- a/manila/share/drivers/cephfs/cephfs_native.py +++ b/manila/share/drivers/cephfs/cephfs_native.py @@ -65,7 +65,7 @@ CONF.register_opts(cephfs_native_opts) class CephFSNativeDriver(driver.ShareDriver,): - """Driver for the Ceph Filsystem. + """Driver for the Ceph Filesystem. This driver is 'native' in the sense that it exposes a CephFS filesystem for use directly by guests, with no intermediate layer like NFS. diff --git a/manila/share/drivers/glusterfs/common.py b/manila/share/drivers/glusterfs/common.py index d22de4fea5..fc4e1340c7 100644 --- a/manila/share/drivers/glusterfs/common.py +++ b/manila/share/drivers/glusterfs/common.py @@ -377,7 +377,7 @@ def numreduct(vers): def _mount_gluster_vol(execute, gluster_export, mount_path, ensure=False): """Mount a GlusterFS volume at the specified mount path. - :param execute: command exectution function + :param execute: command execution function :param gluster_export: GlusterFS export to mount :param mount_path: path to mount at :param ensure: boolean to allow remounting a volume with a warning @@ -398,7 +398,7 @@ def _mount_gluster_vol(execute, gluster_export, mount_path, ensure=False): def _umount_gluster_vol(execute, mount_path): """Unmount a GlusterFS volume at the specified mount path. - :param execute: command exectution function + :param execute: command execution function :param mount_path: path where volume is mounted """ diff --git a/manila/share/drivers/ibm/ganesha_utils.py b/manila/share/drivers/ibm/ganesha_utils.py index c4216c1dee..af482ebab1 100644 --- a/manila/share/drivers/ibm/ganesha_utils.py +++ b/manila/share/drivers/ibm/ganesha_utils.py @@ -15,7 +15,7 @@ Ganesha Admin Utilities Ganesha NFS does not provide many tools for automating the process of creating -and managing export defintions. This module provides utilities to help parse +and managing export definitions. This module provides utilities to help parse a specified ganesha config file and return a map containing the export definitions and attributes. A method republishing updated export definitions is also provided. And there are methods for requesting the ganesha server diff --git a/manila/tests/db/migrations/alembic/test_migration.py b/manila/tests/db/migrations/alembic/test_migration.py index 9eae6b47a5..e60868db5c 100644 --- a/manila/tests/db/migrations/alembic/test_migration.py +++ b/manila/tests/db/migrations/alembic/test_migration.py @@ -149,7 +149,7 @@ class ManilaMigrationsCheckers(test_migrations.WalkVersionsMixin, def test_walk_versions(self): """Walks all version scripts for each tested database. - While walking, ensur that there are no errors in the version + While walking, ensure that there are no errors in the version scripts for each engine. """ with mock.patch('manila.db.sqlalchemy.api.get_engine',