Merge "Fixing string formatting bug in log message."

This commit is contained in:
Jenkins 2017-07-18 17:14:13 +00:00 committed by Gerrit Code Review
commit da94b56f9e
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ class Store(glance_store.driver.Store):
LOG.error(reason)
raise exceptions.NotFound(reason)
except cinder_exception.ClientException as e:
msg = (_('Failed to get image volume %(volume_id): %(error)s')
msg = (_('Failed to get image volume %(volume_id)s: %(error)s')
% {'volume_id': loc.volume_id, 'error': e})
LOG.error(msg)
raise exceptions.BackendException(msg)