From fb8d5de5fadac7d3a4b74c62fe4b05de2a3df1a4 Mon Sep 17 00:00:00 2001 From: "Jay S. Bryant" Date: Thu, 6 Jan 2022 09:48:25 -0600 Subject: [PATCH] Fix Typos from Review 819790 The review above already had a +2 and the code looked ok. Rather than blocking the patch for typos thought it was easier to just push this follow-up patch with the needed fixes. Change-Id: I4783a838adf0374444bcdef746518db5a512bfd2 --- cinder/volume/drivers/huawei/common.py | 4 ++-- cinder/volume/drivers/huawei/rest_client.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cinder/volume/drivers/huawei/common.py b/cinder/volume/drivers/huawei/common.py index 9cd759a7e1c..761cd2a6a9a 100644 --- a/cinder/volume/drivers/huawei/common.py +++ b/cinder/volume/drivers/huawei/common.py @@ -689,8 +689,8 @@ class HuaweiBaseDriver(driver.VolumeDriver): snapshot_id = snapshot_info['ID'] if snapshot_info.get("RUNNINGSTATUS") != constants.STATUS_ACTIVE: - msg = _("Failed to create volume from snapshot duw to" - "snapshot %s is not activate.") % snapshot_id + msg = _("Failed to create volume from snapshot due to " + "snapshot %s not being active.") % snapshot_id LOG.error(msg) raise exception.VolumeBackendAPIException(data=msg) expect_size = int(int(volume.size) * constants.CAPACITY_UNIT) diff --git a/cinder/volume/drivers/huawei/rest_client.py b/cinder/volume/drivers/huawei/rest_client.py index c9874779ebc..3b834fb3fec 100644 --- a/cinder/volume/drivers/huawei/rest_client.py +++ b/cinder/volume/drivers/huawei/rest_client.py @@ -2453,7 +2453,7 @@ class RestClient(object): url = "/clonepair/%s" % pair_id result = self.call(url, data, "DELETE") if result['error']['code'] == constants.CLONE_PAIR_NOT_EXIST: - LOG.warning('ClonePair %s to delete not exist.', pair_id) + LOG.warning('ClonePair %s to delete does not exist.', pair_id) return self._assert_rest_result(result, 'Delete ClonePair %s error.' % pair_id)