Trivial fix typos
Change-Id: Icd38d004eb89f1902365d71d64aa34a65eee9d37
This commit is contained in:
parent
faf610f766
commit
7404ba21b8
@ -312,7 +312,7 @@ Retype volume
|
||||
|
||||
Change type of existing volume. Specify the ``os-retype`` action in the request body.
|
||||
|
||||
Change the volume type of exisiting volume, Cinder may migrate the volume to
|
||||
Change the volume type of existing volume, Cinder may migrate the volume to
|
||||
proper volume host according to the new volume type.
|
||||
|
||||
Normal response codes: 202
|
||||
|
@ -309,7 +309,7 @@ Retype a volume
|
||||
|
||||
Change type of existing volume. Specify the ``os-retype`` action in the request body.
|
||||
|
||||
Change the volume type of exisiting volume, Cinder may migrate the volume to
|
||||
Change the volume type of existing volume, Cinder may migrate the volume to
|
||||
proper volume host according to the new volume type.
|
||||
|
||||
Normal response codes: 202
|
||||
|
@ -163,7 +163,7 @@ class VolumeAttachment(base.CinderPersistentObject, base.CinderObject,
|
||||
|
||||
@base.CinderObjectRegistry.register
|
||||
class VolumeAttachmentList(base.ObjectListBase, base.CinderObject):
|
||||
# Versoin 1.0: Iniitial version
|
||||
# Version 1.0: Initial version
|
||||
# Version 1.1: Remove volume_id in get_by_host|instance
|
||||
VERSION = '1.1'
|
||||
|
||||
|
@ -1783,7 +1783,7 @@ class MigrateVD(object):
|
||||
Returns a boolean indicating whether the migration occurred, as well as
|
||||
model_update.
|
||||
|
||||
:param ctxt: Context
|
||||
:param context: Context
|
||||
:param volume: A dictionary describing the volume to migrate
|
||||
:param host: A dictionary describing the host to migrate to, where
|
||||
host['host'] is its name, and host['capabilities'] is a
|
||||
|
@ -134,7 +134,7 @@ class HttpClient(object):
|
||||
except IndexError:
|
||||
url = asyncTask.get('returnValue')
|
||||
except AttributeError:
|
||||
LOG.debug('_get_async_url: Atttribute Error. (%r)', asyncTask)
|
||||
LOG.debug('_get_async_url: Attribute Error. (%r)', asyncTask)
|
||||
url = 'api/rest/ApiConnection/AsyncTask/'
|
||||
|
||||
# Blank URL
|
||||
|
@ -2030,7 +2030,7 @@ class VMAXCommon(object):
|
||||
def get_target_wwns_list(self, storage_system, volume, connector):
|
||||
"""Find target WWN list.
|
||||
|
||||
:param storageSystem: the storage system name
|
||||
:param storage_system: the storage system name
|
||||
:param connector: the connector dict
|
||||
:returns: list -- targetWwns, the target WWN list
|
||||
:raises: VolumeBackendAPIException
|
||||
|
@ -917,7 +917,7 @@ class VMAXProvisionV3(object):
|
||||
"""Extend a volume instance.
|
||||
|
||||
:param conn: connection to the ecom server
|
||||
:param storageConfigservice: the storage configuration service
|
||||
:param storageConfigService: the storage configuration service
|
||||
:param volumeInstanceName: the volume instance name
|
||||
:param volumeName: the volume name (String)
|
||||
:param volumeSize: the volume size
|
||||
|
@ -649,7 +649,7 @@ class VMAXUtils(object):
|
||||
def convert_gb_to_bits(self, strGbSize):
|
||||
"""Convert GB(string) to bytes(string).
|
||||
|
||||
:param strGB: string -- The size in GB
|
||||
:param strGbSize: string -- The size in GB
|
||||
:returns: string -- The size in bytes
|
||||
"""
|
||||
strBitsSize = six.text_type(int(strGbSize) * units.Gi)
|
||||
@ -2011,8 +2011,8 @@ class VMAXUtils(object):
|
||||
def get_random_pg_from_list(portgroupnames):
|
||||
"""From list of portgroup, choose one randomly
|
||||
|
||||
:param portGroupNames: list of available portgroups
|
||||
:returns: portGroupName - the random portgroup
|
||||
:param portgroupnames: list of available portgroups
|
||||
:returns: portgroupname - the random portgroup
|
||||
"""
|
||||
portgroupname = (
|
||||
portgroupnames[random.randint(0, len(portgroupnames) - 1)])
|
||||
@ -2676,7 +2676,7 @@ class VMAXUtils(object):
|
||||
|
||||
:param conn: connection to the ecom server
|
||||
:param storagegroup: the storagegroup instance name
|
||||
:param extraSpecs: extra specifications
|
||||
:param extraspecs: extra specifications
|
||||
"""
|
||||
modifiedInstance = None
|
||||
if type(storagegroup) is pywbem.cim_obj.CIMInstance:
|
||||
@ -2802,7 +2802,7 @@ class VMAXUtils(object):
|
||||
def change_compression_type(self, isSourceCompressionDisabled, newType):
|
||||
"""Check if volume type have different compression types.
|
||||
|
||||
:param isCompressionDisabled: from source
|
||||
:param isSourceCompressionDisabled: from source
|
||||
:param newType: from target
|
||||
:returns: boolean
|
||||
"""
|
||||
|
@ -396,7 +396,7 @@ class NexentaISCSIDriver(driver.ISCSIDriver):
|
||||
def retype(self, context, volume, new_type, diff, host):
|
||||
"""Convert the volume to be of the new type.
|
||||
|
||||
:param ctxt: Context
|
||||
:param context: Context
|
||||
:param volume: A dictionary describing the volume to migrate
|
||||
:param new_type: A dictionary describing the volume type to convert to
|
||||
:param diff: A dictionary with the difference between the two types
|
||||
|
@ -245,7 +245,7 @@ class NexentaNfsDriver(nfs.NfsDriver): # pylint: disable=R0921
|
||||
def retype(self, context, volume, new_type, diff, host):
|
||||
"""Convert the volume to be of the new type.
|
||||
|
||||
:param ctxt: Context
|
||||
:param context: Context
|
||||
:param volume: A dictionary describing the volume to migrate
|
||||
:param new_type: A dictionary describing the volume type to convert to
|
||||
:param diff: A dictionary with the difference between the two types
|
||||
|
@ -227,7 +227,7 @@ class BrcdHTTPFCZoneClient(object):
|
||||
raise exception.BrocadeZoningHttpException(reason=msg)
|
||||
return response
|
||||
|
||||
def get_parsed_data(self, data, delim1, demil2):
|
||||
def get_parsed_data(self, data, delim1, delim2):
|
||||
"""Return the sub string between the delimiters.
|
||||
|
||||
:param data: String to manipulate
|
||||
@ -238,7 +238,7 @@ class BrcdHTTPFCZoneClient(object):
|
||||
try:
|
||||
start = data.index(delim1)
|
||||
start = start + len(delim1)
|
||||
end = data.index(demil2)
|
||||
end = data.index(delim2)
|
||||
return data[start:end]
|
||||
except ValueError as e:
|
||||
msg = (_("Error while parsing the data: %s.") % six.text_type(e))
|
||||
|
Loading…
Reference in New Issue
Block a user