From af6879ca8fe732135c21f6de8488ab7758fdddf8 Mon Sep 17 00:00:00 2001 From: zhangyanxian Date: Mon, 11 Jul 2016 09:58:18 +0000 Subject: [PATCH] Fix typo in the huawei_driver.py Change-Id: I17351e237efc6a8147b6864250e01579b02178b8 --- cinder/volume/drivers/huawei/huawei_driver.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cinder/volume/drivers/huawei/huawei_driver.py b/cinder/volume/drivers/huawei/huawei_driver.py index 89933acc46a..5d48a5893e2 100644 --- a/cinder/volume/drivers/huawei/huawei_driver.py +++ b/cinder/volume/drivers/huawei/huawei_driver.py @@ -95,7 +95,7 @@ class HuaweiBaseDriver(driver.VolumeDriver): def get_local_and_remote_dev_conf(self): self.loc_dev_conf = self.huawei_conf.get_local_device() - # Now just support one replication_devices. + # Now just support one replication device. replica_devs = self.huawei_conf.get_replication_devices() self.replica_dev_conf = replica_devs[0] if replica_devs else {} @@ -249,7 +249,7 @@ class HuaweiBaseDriver(driver.VolumeDriver): opts.update(opts_value) for key, value in specs.items(): - # Get the scope, if is using scope format. + # Get the scope, if it is using scope format. scope = None key_split = key.split(':') if len(key_split) > 2 and key_split[0] != "capabilities": @@ -321,7 +321,7 @@ class HuaweiBaseDriver(driver.VolumeDriver): def _create_base_type_volume(self, opts, volume, volume_type): """Create volume and add some base type. - Base type is the services won't conflict with the other service. + Base type is the service type which doesn't conflict with the other. """ lun_params = self._get_lun_params(volume, opts) lun_info, model_update = self._create_volume(volume, lun_params) @@ -349,8 +349,8 @@ class HuaweiBaseDriver(driver.VolumeDriver): model_update): """Add the extend type. - Extend type is the services may conflict with LUNCopy. - So add it after the those services. + Extend type is the service type which may conflict with the other. + So add it after those services. """ lun_id = lun_info['ID'] if opts.get('hypermetro') == 'true': @@ -551,7 +551,7 @@ class HuaweiBaseDriver(driver.VolumeDriver): LOG.error(_LE('Unable to rename lun %s on array.'), current_name) return {'_name_id': new_volume.name_id} - LOG.debug("Rename lun from %(current_name)s to %(original_name)s " + LOG.debug("Renamed lun from %(current_name)s to %(original_name)s " "successfully.", {'current_name': current_name, 'original_name': original_name})