Merge "Fix HNAS driver exception messages"
This commit is contained in:
commit
fc17104418
@ -567,7 +567,7 @@ class HDSHNASDriver(driver.ShareDriver):
|
||||
if share_size is None:
|
||||
msg = (_("The share %s trying to be managed does not have a "
|
||||
"quota limit, please set it before manage.") % share_id)
|
||||
raise exception.ManageInvalidShare(msg)
|
||||
raise exception.ManageInvalidShare(reason=msg)
|
||||
|
||||
path = self.hnas_evs_ip + ':/shares/' + share_id
|
||||
|
||||
|
@ -114,7 +114,7 @@ class HNASSSHBackend(object):
|
||||
if ('Cannot find any clonable files in the source directory' in
|
||||
e.stderr):
|
||||
msg = _("Source path %s is empty") % src_path
|
||||
raise exception.HNASNothingToCloneException(msg)
|
||||
raise exception.HNASNothingToCloneException(msg=msg)
|
||||
else:
|
||||
msg = six.text_type(e)
|
||||
LOG.exception(msg)
|
||||
|
Loading…
Reference in New Issue
Block a user