]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixes docstring typos (Cinder)
authorRafael Rivero <rafael@cloudscaling.com>
Wed, 24 Sep 2014 20:15:41 +0000 (13:15 -0700)
committerEric Harney <eharney@redhat.com>
Thu, 9 Oct 2014 16:20:01 +0000 (12:20 -0400)
A few more typographical errors found in Cinder docstrings.

Change-Id: If841350592650e23e9d7b24b4c52a3cdddb62d2f

15 files changed:
cinder/scheduler/simple.py
cinder/tests/api/v1/test_limits.py
cinder/tests/db/test_qos_specs.py
cinder/tests/image/test_glance.py
cinder/tests/test_pure.py
cinder/volume/driver.py
cinder/volume/drivers/emc/emc_cli_fc.py
cinder/volume/drivers/emc/emc_vmax_common.py
cinder/volume/drivers/emc/emc_vmax_fast.py
cinder/volume/drivers/emc/emc_vmax_masking.py
cinder/volume/drivers/emc/emc_vnx_cli.py
cinder/volume/drivers/hds/iscsi.py
cinder/volume/drivers/san/hp/hp_msa_common.py
cinder/volume/drivers/solidfire.py
cinder/volume/drivers/zfssa/restclient.py

index 2dd59015ed0fa71e052a592b9335ad14aed34ec6..7414f5736fd27cec19a577943ed9e2b01a0d545e 100644 (file)
@@ -31,7 +31,7 @@ of filters and weighers.
   scheduler_default_weighers = 'ChanceWeigher'
 
 If one prefers the scheduler to pick up the back-end has most available
-space that scheudler can see (like SimpleScheduler did), use following
+space that scheduler can see (like SimpleScheduler did), use following
 combination of filters and weighers with FilterScheduler.
 
   scheduler_driver = cinder.scheduler.filter_scheduler.FilterScheduler
index 711d57320179047bd2b7761bab6ec6e108054033..935a1c3944ecc1e98a1c700fb949f2743725b56a 100644 (file)
@@ -424,7 +424,7 @@ class LimiterTest(BaseLimitTestSuite):
         """test delay on 11th put request.
 
         the 11th PUT will result in a delay of 6.0 seconds until
-        the next request will be granced.
+        the next request will be granted.
         """
         expected = [None] * 10 + [6.0]
         results = list(self._check(11, "PUT", "/anything"))
@@ -435,7 +435,7 @@ class LimiterTest(BaseLimitTestSuite):
         """test delay of 8th post request.
 
         Ensure that the 8th POST will result in a delay of 6.0 seconds
-        until the next request will be granced.
+        until the next request will be granted.
         """
         expected = [None] * 7
         results = list(self._check(7, "POST", "/anything"))
index a6357a4b5dafeded9d44d29059651674aa4833ef..02304bb2a163e264abe7f8585324ce9e43c86dc0 100644 (file)
@@ -14,7 +14,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-"""Tests for qaulity_of_service_specs table."""
+"""Tests for quality_of_service_specs table."""
 
 
 import time
index b252ac9878068ac2e755c7cd8ff68c557abb70f3..e5f9ec138138f1f2b3fb73a4c8f57071085cd8ab 100644 (file)
@@ -79,7 +79,7 @@ class TestGlanceImageService(test.TestCase):
     At a high level, the translations involved are:
 
         1. Glance -> ImageService - This is needed so we can support
-           multple ImageServices (Glance, Local, etc)
+           multiple ImageServices (Glance, Local, etc)
 
         2. ImageService -> API - This is needed so we can support multple
            APIs (OpenStack, EC2)
index d56bc4329710be85e5d2bdd1624fffa7a1447b08..bcf3af7ba9df144932b0c218d31b296c88508fd2 100644 (file)
@@ -114,7 +114,7 @@ class PureISCSIDriverTestCase(test.TestCase):
             self.driver.do_setup, None)
 
     def assert_error_propagates(self, mocks, func, *args, **kwargs):
-        """Assert that errors from mocks propogate to func.
+        """Assert that errors from mocks propagate to func.
 
         Fail if exceptions raised by mocks are not seen when calling
         func(*args, **kwargs). Ensure that we are really seeing exceptions
@@ -345,7 +345,7 @@ class FlashArrayBaseTestCase(test.TestCase):
         self.array = array
 
     def assert_error_propagates(self, mocks, func, *args, **kwargs):
-        """Assert that errors from mocks propogate to func.
+        """Assert that errors from mocks propagate to func.
 
         Fail if exceptions raised by mocks are not seen when calling
         func(*args, **kwargs). Ensure that we are really seeing exceptions
index 60892239bd6769320b7787b4e67bfe71bfd523f2..14415be32fb9fff440db76e2651a1e6e3516d325 100644 (file)
@@ -175,7 +175,7 @@ class VolumeDriver(object):
        data path related implementation should be a *member object*
        that we call a connector.  The point here is that for example
        don't allow the LVM driver to implement iSCSI methods, instead
-       call whatever connector it has configued via conf file
+       call whatever connector it has configured via conf file
        (iSCSI{LIO, TGT, IET}, FC, etc).
 
        In the base class and for example the LVM driver we do this via a has-a
index e4ccff5505073c860421fe601e88fd8fd9875ae1..d4c66f40722bf15e80765a652bddecf978ca998e 100644 (file)
@@ -123,7 +123,7 @@ class EMCCLIFCDriver(driver.FibreChannelDriver):
         The target_wwn can be a single entry or a list of wwns that
         correspond to the list of remote wwn(s) that will export the volume.
         The initiator_target_map is a map that represents the remote wwn(s)
-        and a list of wwns which are visiable to the remote wwn(s).
+        and a list of wwns which are visible to the remote wwn(s).
         Example return values:
 
             {
index 20a0f6ba46a413cd046925f0878de5a13e392147..238029f852d0e63728839787947b71d83ac9c355 100644 (file)
@@ -1525,7 +1525,7 @@ class EMCVMAXCommon(object):
         self.conn = self._get_ecom_connection()
 
     def _initial_setup(self, volume):
-        """Necessary setup to accummulate the relevant information.
+        """Necessary setup to accumulate the relevant information.
 
         The volume object has a host in which we can parse the
         config group name. The config group name is the key to our EMC
@@ -1744,7 +1744,7 @@ class EMCVMAXCommon(object):
         composite volume
 
         :param conn: the connection information to the ecom server
-        :param storageConfigService: thestorage config service instance name
+        :param storageConfigService: the storage config service instance name
         :param compositeVolumeInstanceName: the composite volume instance name
         :param additionalSize: the size you want to increase the volume by
         :returns: volume instance modifiedCompositeVolumeInstance
index 9e3cbc555146f5920826fd3c8acda31f7aca5254..9a2312cf947a2a664e273bce95699209141bdd99 100644 (file)
@@ -674,7 +674,7 @@ class EMCVMAXFast(object):
     def get_capacities_associated_to_policy(self, conn, arrayName, policyName):
         """Gets the total and un-used capacities for all pools in a policy.
 
-        Given the name of the policy, get the total capcity and un-used
+        Given the name of the policy, get the total capacity and un-used
         capacity in GB of all the storage pools associated with the policy.
 
         :param policyName: the name of policy rule, a string value
index de7965855d8803dbe9dd68a3f25747022de02230..79379420100ebe26c57103460ecdf388c1be242a 100644 (file)
@@ -539,7 +539,7 @@ class EMCVMAXMasking(object):
         return foundHardwardIDsInstanceNames
 
     def _get_initiator_group_from_job(self, conn, job):
-        """After creating an new intiator group find it and return it
+        """After creating an new initiator group find it and return it
 
         :param conn: the connection to the ecom server
         :param job: the create initiator group job
@@ -562,7 +562,7 @@ class EMCVMAXMasking(object):
     def _create_masking_view(
             self, conn, configService, maskingViewName, deviceMaskingGroup,
             targetMaskingGroup, initiatorMaskingGroup):
-        """After creating an new intiator group find it and return it.
+        """After creating an new initiator group find it and return it.
 
         :param conn: the connection to the ecom server
         :param configService: the create initiator group job
@@ -872,7 +872,7 @@ class EMCVMAXMasking(object):
 
     def _get_initiator_group_from_masking_view(
             self, conn, maskingViewName, storageSystemName):
-        """Given the masking view name get the inititator group from it.
+        """Given the masking view name get the initiator group from it.
 
         :param conn: connection the the ecom server
         :param maskingViewName: the name of the masking view
index 218d1ca40ea94f261da7db68f7465c11369465c4..903d2161a5c602577eca48ebbbad87f4697e6dd4 100644 (file)
@@ -1610,7 +1610,7 @@ class EMCVnxCliBase(object):
 
     def _is_valid_for_storage_assisted_migration(
             self, volume, host, new_type=None):
-        """Check the src and dest volume to decide the mogration type."""
+        """Check the src and dest volume to decide the migration type."""
         false_ret = (False, None)
 
         if 'location_info' not in host['capabilities']:
index f4350a56d2dd2acb0ba20a903ee6be42f84a26d1..11da3541c687324e8600e2f99870a6e279573a2a 100644 (file)
@@ -413,7 +413,7 @@ class HDSISCSIDriver(driver.ISCSIDriver):
     def remove_export(self, context, volume):
         """Disconnect a volume from an attached instance.
            :param context: context
-           :param volume: dictionary volume referencej
+           :param volume: dictionary volume reference
         """
 
         provider = volume['provider_location']
index b10739bc1feb6a4e7c854dd5be7e7edeed9f4362..dd8489b367ad4ac9fd6bd036808baa69504352e2 100644 (file)
@@ -158,7 +158,7 @@ class HPMSACommon(object):
             raise exception.HPMSANotEnoughSpace(vdisk=self.vdisk)
 
     def _assert_source_detached(self, volume):
-        """The MSA requires a volume to be dettached to clone it.
+        """The MSA requires a volume to be detached to clone it.
 
         Make sure that the volume is not in use when trying to copy it.
         """
index 15b2fd1f8a0086dc414efccb8e610517482369ae..20cb5fd38d63e934649b45540a37b3a8cc738638 100644 (file)
@@ -610,7 +610,7 @@ class SolidFireDriver(SanISCSIDriver):
         Note that for SolidFire Clusters currently there is no snapshot
         implementation.  Due to the way SF does cloning there's no performance
         hit or extra space used.  The only thing that's lacking from this is
-        the abilit to restore snaps.
+        the ability to restore snaps.
 
         After GA a true snapshot implementation will be available with
         restore at which time we'll rework this appropriately.
index 1e4122fab2d1810246cf56aa37341900cad36e34..4f98c22b5c9469080e6812ebeb0d1ad13cada4c1 100644 (file)
@@ -242,7 +242,7 @@ class RestClientURL(object):
     def request(self, path, request, body=None, **kwargs):
         """Make an HTTP request and return the results
 
-        :param path: Path used with the initiazed URL to make a request
+        :param path: Path used with the initialized URL to make a request
         :param request: HTTP request type (GET, POST, PUT, DELETE)
         :param body: HTTP body of request
         :key accept: Set HTTP 'Accept' header with this value