Browse Source

Merge "Fix Typos from Review 819790"

changes/84/824084/1
Zuul 4 months ago committed by Gerrit Code Review
parent
commit
c88c5074a6
  1. 4
      cinder/volume/drivers/huawei/common.py
  2. 2
      cinder/volume/drivers/huawei/rest_client.py

4
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)

2
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)

Loading…
Cancel
Save