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
This commit is contained in:
parent
77da18785a
commit
fb8d5de5fa
@ -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)
|
||||
|
@ -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…
Reference in New Issue
Block a user