Fix missing value types for log message

This patch add missing value types for some log message of exception.

Change-Id: I661d597f5b87923078cdf1556d72b28e7fa18b5f
Closes-Bug: #1494574
This commit is contained in:
Sergey Vilgelm 2015-09-14 10:48:41 +03:00
parent 94e62e1a41
commit 087fa055b5
2 changed files with 2 additions and 2 deletions

View File

@ -346,7 +346,7 @@ class GPFSShareDriver(driver.ExecuteMixin, driver.GaneshaMixin,
self._gpfs_execute('chmod', '777', sharepath)
except exception.ProcessExecutionError as e:
msg = (_('Failed to set permissions for share %(sharename)s. '
'Error: %(excmsg).') %
'Error: %(excmsg)s.') %
{'sharename': sharename, 'excmsg': e})
LOG.error(msg)
raise exception.GPFSException(msg)

View File

@ -862,7 +862,7 @@ disks = d7
@staticmethod
def resp_get_nfs_share_by_path_absence(mover_name):
return '%(mover_name) :\n error' % mover_name
return '%s :\n error' % mover_name
@staticmethod
def req_delete_nfs_share(path, mover_name):