From 974f99beda164d145a191722f531a28bb7ff66fc Mon Sep 17 00:00:00 2001 From: Chang Bo Guo Date: Tue, 24 Sep 2013 02:05:35 -0700 Subject: [PATCH] Fixes some typos in cinder Just some typos Change-Id: Ic0d99d2ec2152145e0c58b8792f630cacdb7ac87 --- cinder/api/contrib/services.py | 4 ++-- cinder/backup/drivers/ceph.py | 2 +- cinder/brick/initiator/connector.py | 2 +- cinder/brick/initiator/linuxfc.py | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cinder/api/contrib/services.py b/cinder/api/contrib/services.py index b8b9bc9be..bb4c0e377 100644 --- a/cinder/api/contrib/services.py +++ b/cinder/api/contrib/services.py @@ -54,7 +54,7 @@ class ServicesUpdateTemplate(xmlutil.TemplateBuilder): # TODO(uni): template elements of 'host', 'service' and 'disabled' # should be deprecated to make ServicesUpdateTemplate consistent # with ServicesIndexTemplate. Still keeping it here for API - # compability sake. + # compatibility sake. root = xmlutil.TemplateElement('host') root.set('host') root.set('service') @@ -128,7 +128,7 @@ class ServiceController(object): raise webob.exc.HTTPBadRequest() # NOTE(uni): deprecating service request key, binary takes precedence - # Still keeping service key here for API compability sake. + # Still keeping service key here for API compatibility sake. service = body.get('service', '') binary = body.get('binary', '') binary_key = binary or service diff --git a/cinder/backup/drivers/ceph.py b/cinder/backup/drivers/ceph.py index 8c95a6b85..8b8552d6c 100644 --- a/cinder/backup/drivers/ceph.py +++ b/cinder/backup/drivers/ceph.py @@ -704,7 +704,7 @@ class CephBackupDriver(BackupDriver): def _get_volume_size_gb(self, volume): """Return the size in gigabytes of the given volume. - Raises exception.InvalidParameterValue if voluem size is 0. + Raises exception.InvalidParameterValue if volume size is 0. """ if int(volume['size']) == 0: errmsg = _("need non-zero volume size") diff --git a/cinder/brick/initiator/connector.py b/cinder/brick/initiator/connector.py index ae78c24a9..646bb0780 100644 --- a/cinder/brick/initiator/connector.py +++ b/cinder/brick/initiator/connector.py @@ -245,7 +245,7 @@ class ISCSIConnector(InitiatorConnector): """Detach the volume from instance_name. connection_properties for iSCSI must include: - target_portal - ip and optional port + target_portal - IP and optional port target_iqn - iSCSI Qualified Name target_lun - LUN id of the volume """ diff --git a/cinder/brick/initiator/linuxfc.py b/cinder/brick/initiator/linuxfc.py index fd53dd259..360178967 100644 --- a/cinder/brick/initiator/linuxfc.py +++ b/cinder/brick/initiator/linuxfc.py @@ -88,7 +88,7 @@ class LinuxFibreChannel(linuxscsi.LinuxSCSI): def get_fc_hbas_info(self): """Get Fibre Channel WWNs and device paths from the system, if any.""" - # Note(walter-boring) modern linux kernels contain the FC HBA's in /sys + # Note(walter-boring) modern Linux kernels contain the FC HBA's in /sys # and are obtainable via the systool app hbas = self.get_fc_hbas() if not hbas: @@ -109,7 +109,7 @@ class LinuxFibreChannel(linuxscsi.LinuxSCSI): def get_fc_wwpns(self): """Get Fibre Channel WWPNs from the system, if any.""" - # Note(walter-boring) modern linux kernels contain the FC HBA's in /sys + # Note(walter-boring) modern Linux kernels contain the FC HBA's in /sys # and are obtainable via the systool app hbas = self.get_fc_hbas() @@ -125,7 +125,7 @@ class LinuxFibreChannel(linuxscsi.LinuxSCSI): def get_fc_wwnns(self): """Get Fibre Channel WWNNs from the system, if any.""" - # Note(walter-boring) modern linux kernels contain the FC HBA's in /sys + # Note(walter-boring) modern Linux kernels contain the FC HBA's in /sys # and are obtainable via the systool app hbas = self.get_fc_hbas() if not hbas: -- 2.45.2