Merge "Fix HNAS driver exception messages"

This commit is contained in:
Jenkins 2016-04-20 20:14:55 +00:00 committed by Gerrit Code Review
commit fc17104418
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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