Merge "Fix Typos from Review 819790"

This commit is contained in:
Zuul 2022-01-11 00:34:42 +00:00 committed by Gerrit Code Review
commit c88c5074a6
2 changed files with 3 additions and 3 deletions

View File

@ -689,8 +689,8 @@ class HuaweiBaseDriver(driver.VolumeDriver):
snapshot_id = snapshot_info['ID'] snapshot_id = snapshot_info['ID']
if snapshot_info.get("RUNNINGSTATUS") != constants.STATUS_ACTIVE: if snapshot_info.get("RUNNINGSTATUS") != constants.STATUS_ACTIVE:
msg = _("Failed to create volume from snapshot duw to" msg = _("Failed to create volume from snapshot due to "
"snapshot %s is not activate.") % snapshot_id "snapshot %s not being active.") % snapshot_id
LOG.error(msg) LOG.error(msg)
raise exception.VolumeBackendAPIException(data=msg) raise exception.VolumeBackendAPIException(data=msg)
expect_size = int(int(volume.size) * constants.CAPACITY_UNIT) expect_size = int(int(volume.size) * constants.CAPACITY_UNIT)

View File

@ -2453,7 +2453,7 @@ class RestClient(object):
url = "/clonepair/%s" % pair_id url = "/clonepair/%s" % pair_id
result = self.call(url, data, "DELETE") result = self.call(url, data, "DELETE")
if result['error']['code'] == constants.CLONE_PAIR_NOT_EXIST: 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 return
self._assert_rest_result(result, 'Delete ClonePair %s error.' self._assert_rest_result(result, 'Delete ClonePair %s error.'
% pair_id) % pair_id)